神应相关属性战斗力修改

yuanshuai 2022-09-07 11:40:13 +08:00
parent ef7373fe4a
commit f6e27c21d3
3 changed files with 5 additions and 1 deletions

View File

@ -6872,7 +6872,6 @@ function NetManager.SendUpgradeGodTreeRequest(_jewelId,_count,func)
if func then
func(msg)
end
EquipTreasureManager.SetTreasureDirty(_jewelId, true)
end)
end

View File

@ -475,6 +475,7 @@ function this.ChangeTreasureLv(_idDyn, _type)
allTreasures[_idDyn].refineLv = refine
allTreasures[_idDyn].refineConfig =this.GetCurrTreasureLvConfig(2, allTreasures[_idDyn].refinePool, refine)
else
--改变神应等级
if allTreasures[_idDyn] then
allTreasures[_idDyn].treeLv=allTreasures[_idDyn].treeLv+1
end

View File

@ -220,6 +220,10 @@ function EquipTreasureStrongPopup:BindEvent()
if oldWarPowerValue ~= newWarPowerValue then
UIManager.OpenPanel(UIName.WarPowerChangeNotifyPanelV2,{oldValue = oldWarPowerValue,newValue = newWarPowerValue})
end
-- 宝物属性改变需要重新计算战斗力
HeroPropManager.SetDirtyByType(curEquipData.upHeroDid, Hero_Prop_Type.EquipTreasure)
-- EquipTreasureManager.SetTreasureDirty(curEquipData.idDyn, true)
Game.GlobalEvent:DispatchEvent(GameEvent.Treasure.TreasureLvUp)
end)
end)