| | |
| | | {
|
| | | ParseConfig();
|
| | | playerPack.refreshItemCountEvent += RefreshItemCountAct;
|
| | | PlayerStoneData.OnRefreshStoneData += OnRefreshStoneData;
|
| | | MountModel.Event_MountHA301A += OnRefreshMountData;
|
| | | PetModel.Event_H0704Add += OnRefreshPetData;
|
| | | PetModel.Event_H0704Update += OnRefreshPetData;
|
| | |
| | |
|
| | | public void RefreshData()
|
| | | {
|
| | | GetAllStoneLv();
|
| | | GetWashCntDic();
|
| | | GetPetCntDic();
|
| | | GetMountCntDic();
|
| | |
| | | }
|
| | | _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
|
| | |
|