parent
7b88415339
commit
937096d445
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue