修复大闹天宫招募带有宝物的英雄会导致登陆卡死的问题,针对装备丢失添加判空操作避免登陆卡死

dev_chengFeng
JieLing 2020-09-27 15:09:28 +08:00
parent 4c9db13851
commit e9159cc1ca
2 changed files with 42 additions and 40 deletions

View File

@ -100,12 +100,12 @@ function this.InitExpeditionData(msg)
--if msg.removesHeroIds then
-- this.DeleteHeroDatas(msg.removesHeroIds)
--end
--招募的英雄
this.InitHeroDatas(msg.heroList)
--装备
this.InitEquipData(msg.equip)
--宝器
this.InitBaoDatas(msg.soulEquip)
--招募的英雄
this.InitHeroDatas(msg.heroList)
--猎妖开启时间
this.startTime = msg.startTime

View File

@ -1069,6 +1069,7 @@ local function CalculateEquipTreaSureAddVal(_heroId)
local curEuipTreaSureData =
EquipTreasureManager.GetSingleTreasureByIdDyn(did) or
ExpeditionManager.GetSingleTreasureByIdDyn(did)
if curEuipTreaSureData then
local curEuipTreaSureConfig = jewelConfig[curEuipTreaSureData.id]
for _, configInfo in ConfigPairs(jewelRankupConfig) do
--强化的属性
@ -1118,6 +1119,7 @@ local function CalculateEquipTreaSureAddVal(_heroId)
end
end
end
end
--math.min()
--取 强化 精炼 共鸣属性
if #curHeroData.jewels > 1 then