| System/Pet/PetAttributeMethods.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Pet/PetAttributeWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Pet/PlayerPetDatas.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/RolePromote/RolePromoteModel.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
System/Pet/PetAttributeMethods.cs
@@ -95,7 +95,7 @@ isAutoTrain = false; breakLockBtn.AddListener(ClickBreakBtn); petAutoTrainBtn.AddListener(ClickPetAutoTrainBtn); PlayerPetDatas.Event_H0704Update += RefreshPetInfo; PlayerPetDatas.Event_H0704Update += RefreshPetInfoUpdate; PlayerPetDatas.Event_H0704Add += RefreshPetInfo; petStoneBtn.AddListener(() => { WindowCenter.Instance.Open<PetStoneTipsWin>(); }); curPetSkillCtrl.OnRefreshCell += RefreshCurPetSkillCell; @@ -115,7 +115,7 @@ { typePetID = 0; StopCoroutine("FrameDelay"); PlayerPetDatas.Event_H0704Update -= RefreshPetInfo; PlayerPetDatas.Event_H0704Update -= RefreshPetInfoUpdate; PlayerPetDatas.Event_H0704Add -= RefreshPetInfo; curPetSkillCtrl.OnRefreshCell -= RefreshCurPetSkillCell; allPetSkillCtrl.OnRefreshCell -= RefreshAllPetSkillCell; @@ -340,6 +340,16 @@ } } #endregion private void RefreshPetInfoUpdate(int _petID) { if (petInfoConfig == null) return; SoundPlayer.Instance.PlayUIAudio(19); m_UIeffect2.Play(); AllPetAttrCtrl(); curPetSkillCtrl.m_Scorller.RefreshActiveCellViews(); CreateAllPetSkill(); PetPanelAssignment(petInfoConfig.ID, true); } private void RefreshPetInfo() { if (petInfoConfig == null) return; System/Pet/PetAttributeWin.cs
@@ -107,11 +107,11 @@ } List<int> PetSkillLv = new List<int>(); List<int> PetSkill = new List<int>(); private void PetUpdate()//灵宠刷新 private void PetUpdate(int _PetID)//灵宠刷新 { petmodel.Wait = true; PetInfoConfig petInfo = Config.Instance.Get<PetInfoConfig>(TypePetID); if (petmodel._DicPetBack.ContainsKey(TypePetID)) PetInfoConfig petInfo = Config.Instance.Get<PetInfoConfig>(_PetID); if (petmodel._DicPetBack.ContainsKey(_PetID)) { PetSkillLv.Clear(); PetSkill.Clear(); @@ -125,12 +125,11 @@ { PetSkill.Add(petSkillStrList[i]); } if (petmodel._DicPetBack[TypePetID].PetClass > PetLv && PetSkillLv.Contains((petmodel._DicPetBack[TypePetID].PetClass))) if (_PetID== TypePetID && petmodel._DicPetBack[_PetID].PetClass > PetLv && PetSkillLv.Contains((petmodel._DicPetBack[_PetID].PetClass))) { int Index = PetSkillLv.IndexOf((petmodel._DicPetBack[TypePetID].PetClass)); ridingAndPetActivationModel.RidingAndPetActivationSet(RidingAndPetActivation.PetSkillActivates, TypePetID, PetSkill[Index], petmodel._DicPetBack[TypePetID].PetClass); int Index = PetSkillLv.IndexOf((petmodel._DicPetBack[_PetID].PetClass)); ridingAndPetActivationModel.RidingAndPetActivationSet(RidingAndPetActivation.PetSkillActivates, _PetID, PetSkill[Index], petmodel._DicPetBack[_PetID].PetClass); } } m_ScrollerController.m_Scorller.RefreshActiveCellViews();//刷新可见 } System/Pet/PlayerPetDatas.cs
@@ -31,7 +31,7 @@ public static event Delegate_Ha339 Event_Ha339;//灵兽魂石 public delegate void Delegate_H0704(); public static event Delegate_H0704 Event_H0704Add;//灵宠添加(进阶) public static Action Event_H0704Update;//灵宠刷新 public static Action<int> Event_H0704Update;//灵宠刷新 public delegate void SpiritPetPlay(int _toPlay = 0);//宠物是否出战 public static event SpiritPetPlay Event_SpiritPetPlay; public int PetNow = 0;//用来保存出战的灵宠 @@ -525,7 +525,7 @@ _DicPetBack[petId].ItemPlace = petIndex; if (Event_H0704Update != null && IsOk) { Event_H0704Update(); Event_H0704Update(petId); } if (_DicPetBack[petId].PetStatus == 1) { System/RolePromote/RolePromoteModel.cs
@@ -380,7 +380,7 @@ #endregion #region 灵宠 private void OnRefreshPetData(HB701_tagMCPetLV info) private void OnRefreshPetData(int info) { GetPetCntDic(); }