少年修仙传客户端代码仓库
client_Wu Xijin
2019-04-22 5bcf6a59290a5f7f0caac94867f409c42be165ea
System/Alchemy/AlchemyModel.cs
@@ -18,6 +18,7 @@
        public readonly Redpoint redpoint = new Redpoint(MainRedDot.RedPoint_key, 110);
        public readonly Redpoint alchemyDrugRedpoint1 = new Redpoint(110, 11001);
        public readonly Redpoint alchemyDrugRedpoint2 = new Redpoint(110, 11002);
        public readonly Redpoint alchemyDrugREdpoint3 = new Redpoint(110, 11003);
        Dictionary<int, Dictionary<int, Redpoint>> alchemyQualityRedpoints = new Dictionary<int, Dictionary<int, Redpoint>>();
        Dictionary<int, AlchemyRedpoint> alchemyRedpoints = new Dictionary<int, AlchemyRedpoint>();
@@ -114,6 +115,11 @@
            {
                CheckRedpoint();
            }
            if (m_AlchemyDrugs.Contains(itemId))
            {
                RefreshUseDrugRedpoint();
            }
        }
        private void PlayerDataRefreshEvent(PlayerDataType dataType)
@@ -129,6 +135,7 @@
            if (id == (int)FuncOpenEnum.BlastFurnace)
            {
                CheckRedpoint();
                RefreshUseDrugRedpoint();
            }
        }
@@ -628,6 +635,23 @@
                }
            }
        }
        void RefreshUseDrugRedpoint()
        {
            var useable = false;
            if (FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.BlastFurnace))
            {
                foreach (var itemId in m_AlchemyDrugs)
                {
                    if (GetAlchemyDrugState(itemId) == 0)
                    {
                        useable = true;
                        break;
                    }
                }
            }
            alchemyDrugREdpoint3.state = useable ? RedPointState.Simple : RedPointState.None;
        }
    }
    public enum AlchemyType