修复大闹天宫招募带有宝物的英雄会导致登陆卡死的问题,针对装备丢失添加判空操作避免登陆卡死
parent
4c9db13851
commit
e9159cc1ca
|
@ -100,12 +100,12 @@ function this.InitExpeditionData(msg)
|
||||||
--if msg.removesHeroIds then
|
--if msg.removesHeroIds then
|
||||||
-- this.DeleteHeroDatas(msg.removesHeroIds)
|
-- this.DeleteHeroDatas(msg.removesHeroIds)
|
||||||
--end
|
--end
|
||||||
--招募的英雄
|
|
||||||
this.InitHeroDatas(msg.heroList)
|
|
||||||
--装备
|
--装备
|
||||||
this.InitEquipData(msg.equip)
|
this.InitEquipData(msg.equip)
|
||||||
--宝器
|
--宝器
|
||||||
this.InitBaoDatas(msg.soulEquip)
|
this.InitBaoDatas(msg.soulEquip)
|
||||||
|
--招募的英雄
|
||||||
|
this.InitHeroDatas(msg.heroList)
|
||||||
|
|
||||||
--猎妖开启时间
|
--猎妖开启时间
|
||||||
this.startTime = msg.startTime
|
this.startTime = msg.startTime
|
||||||
|
|
|
@ -1069,6 +1069,7 @@ local function CalculateEquipTreaSureAddVal(_heroId)
|
||||||
local curEuipTreaSureData =
|
local curEuipTreaSureData =
|
||||||
EquipTreasureManager.GetSingleTreasureByIdDyn(did) or
|
EquipTreasureManager.GetSingleTreasureByIdDyn(did) or
|
||||||
ExpeditionManager.GetSingleTreasureByIdDyn(did)
|
ExpeditionManager.GetSingleTreasureByIdDyn(did)
|
||||||
|
if curEuipTreaSureData then
|
||||||
local curEuipTreaSureConfig = jewelConfig[curEuipTreaSureData.id]
|
local curEuipTreaSureConfig = jewelConfig[curEuipTreaSureData.id]
|
||||||
for _, configInfo in ConfigPairs(jewelRankupConfig) do
|
for _, configInfo in ConfigPairs(jewelRankupConfig) do
|
||||||
--强化的属性
|
--强化的属性
|
||||||
|
@ -1118,6 +1119,7 @@ local function CalculateEquipTreaSureAddVal(_heroId)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
--math.min()
|
--math.min()
|
||||||
--取 强化 精炼 共鸣属性
|
--取 强化 精炼 共鸣属性
|
||||||
if #curHeroData.jewels > 1 then
|
if #curHeroData.jewels > 1 then
|
||||||
|
|
Loading…
Reference in New Issue