少年修仙传客户端代码仓库
client_Zxw
2019-03-08 d331ecebf0bcf281da1ce463d0386d90c2062f8f
System/RolePromote/RolePromoteModel.cs
@@ -20,7 +20,6 @@
        {
            ParseConfig();
            playerPack.refreshItemCountEvent += RefreshItemCountAct;
            PlayerStoneData.OnRefreshStoneData += OnRefreshStoneData;
            MountModel.Event_MountHA301A += OnRefreshMountData;
            PetModel.Event_H0704Add += OnRefreshPetData;
            PetModel.Event_H0704Update += OnRefreshPetData;
@@ -57,7 +56,6 @@
        public void RefreshData()
        {
            GetAllStoneLv();
            GetWashCntDic();
            GetPetCntDic();
            GetMountCntDic();
@@ -269,34 +267,6 @@
            }
            _count = totalLv >= _tatalLv ? _runeHoleDatas.Count : 0;
            return totalLv >= _tatalLv;
        }
        #endregion
        #region 宝石
        private void OnRefreshStoneData()
        {
            GetAllStoneLv();
        }
        private int m_AllStoneLv = 0;
        public int allStoneLv
        {
            get { return m_AllStoneLv; }
        }
        private void GetAllStoneLv()
        {
            m_AllStoneLv = 0;
            var dict = PlayerStoneData.Instance.GetAllStone();
            foreach (uint[] array in dict.Values)
            {
                if (array == null || array.Length == 0) continue;
                for (int i = 0; i < array.Length; i++)
                {
                    if (array[i] == 0) continue;
                    ItemConfig _tagChinItemModel = ItemConfig.Get((int)array[i]);
                    if (_tagChinItemModel == null) continue;
                    m_AllStoneLv += _tagChinItemModel.EffectValueB1;
                }
            }
        }
        #endregion