From 937096d4453ba9d36c6cd2bc08c1dc8696295dce Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Fri, 8 Oct 2021 19:17:59 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90ID1018697=E3=80=91=20=E3=80=90?= =?UTF-8?q?=E4=BD=A9=E6=88=B4=E9=AD=82=E5=8D=B0=E3=80=91=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?dev=E4=BD=A9=E6=88=B4=E9=AD=82=E5=8D=B0=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E6=88=98=E5=8A=9B=E4=B8=8A=E5=8D=87=E6=8F=90=E7=A4=BA=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/ManagedResources/~Lua/Modules/Net/NetManager.lua | 1 + .../~Lua/Modules/SacredTree/SacredTreeManager.lua | 1 - .../~Lua/Modules/SacredTree/SacredTreePanel.lua | 8 ++++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Net/NetManager.lua b/Assets/ManagedResources/~Lua/Modules/Net/NetManager.lua index 67fc7f3664..28c3f13462 100644 --- a/Assets/ManagedResources/~Lua/Modules/Net/NetManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Net/NetManager.lua @@ -5083,6 +5083,7 @@ function this.UpgradeGodTreeRequest(num,func) data.count = num local msg = data:SerializeToString() Network:SendMessageWithCallBack(MessageTypeProto_pb.UpgradeGodTreeRequest, MessageTypeProto_pb.UpgradeGodTreeResponse, msg, function(buffer) + NetManager.RequestUserForceChange(FormationTypeDef.FORMATION_NORMAL) if func then func() end diff --git a/Assets/ManagedResources/~Lua/Modules/SacredTree/SacredTreeManager.lua b/Assets/ManagedResources/~Lua/Modules/SacredTree/SacredTreeManager.lua index 0007576327..7bbc48dd0e 100644 --- a/Assets/ManagedResources/~Lua/Modules/SacredTree/SacredTreeManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/SacredTree/SacredTreeManager.lua @@ -109,7 +109,6 @@ end --获取当前等级加成的属性 function this.GetCurLvPropertyValue(_type, _id, _lv) local lvConfig = nil - LogGreen("_type:".._type.." _id:".._id.." _lv:".._lv) --获取当前等级属性加成 for _, configInfo in ConfigPairs(jewerLevelUpConfig) do if configInfo.Type == _type and configInfo.PoolID == _id and configInfo.Level == _lv then diff --git a/Assets/ManagedResources/~Lua/Modules/SacredTree/SacredTreePanel.lua b/Assets/ManagedResources/~Lua/Modules/SacredTree/SacredTreePanel.lua index 0fc3a06fd9..0b87749a8b 100644 --- a/Assets/ManagedResources/~Lua/Modules/SacredTree/SacredTreePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/SacredTree/SacredTreePanel.lua @@ -87,6 +87,10 @@ function SacredTreePanel:Refresh(isSend) SacredTreeManager.treeLevel = SacredTreeManager.treeLevel + 1 curTreeLevel = curTreeLevel + 1 EquipTreasureManager.ChangeTreeLv() + local herodata = FormationManager.GetFormationByID(FormationTypeDef.FORMATION_NORMAL) + for k,v in pairs(herodata.teamHeroInfos) do + HeroPropManager.SetDirtyByType(v.heroId, Hero_Prop_Type.EquipTreasure) + end SacredTreeManager.OnPowerChange(oldPower) end self.isShortPress = false @@ -103,6 +107,10 @@ function SacredTreePanel:Refresh(isSend) curTreeLevel = curTreeLevel + 1 local oldPower = FormationManager.GetFormationPower(FormationTypeDef.FORMATION_NORMAL) EquipTreasureManager.ChangeTreeLv() + local herodata = FormationManager.GetFormationByID(FormationTypeDef.FORMATION_NORMAL) + for k,v in pairs(herodata.teamHeroInfos) do + HeroPropManager.SetDirtyByType(v.heroId, Hero_Prop_Type.EquipTreasure) + end SacredTreeManager.OnPowerChange(oldPower) self:OnShow() if curTreeLevel >= length then