玉虚论道 战斗记录添加空判断
parent
7a9cdc15b2
commit
c1483a7438
|
|
@ -155,11 +155,11 @@ function this.RankNodeAdapter(node, data,index)
|
||||||
local heroTeam={}
|
local heroTeam={}
|
||||||
heroTeam.team={}
|
heroTeam.team={}
|
||||||
heroTeam.totalForce=msg.recordData.yxldMyForce[i]
|
heroTeam.totalForce=msg.recordData.yxldMyForce[i]
|
||||||
LogError("myforce=="..msg.recordData.yxldMyForce[i])
|
--LogError("myforce=="..msg.recordData.yxldMyForce[i])
|
||||||
local enTeam={}
|
local enTeam={}
|
||||||
enTeam.team={}
|
enTeam.team={}
|
||||||
enTeam.totalForce=msg.recordData.yxldDefForce[i]
|
enTeam.totalForce=msg.recordData.yxldDefForce[i]
|
||||||
LogError("en force=="..msg.recordData.yxldDefForce[i])
|
--LogError("en force=="..msg.recordData.yxldDefForce[i])
|
||||||
for i = 1, #fightData.heroFightInfos.fightUnitList do
|
for i = 1, #fightData.heroFightInfos.fightUnitList do
|
||||||
local hero=fightData.heroFightInfos.fightUnitList[i]
|
local hero=fightData.heroFightInfos.fightUnitList[i]
|
||||||
local newHero={}
|
local newHero={}
|
||||||
|
|
@ -172,6 +172,8 @@ function this.RankNodeAdapter(node, data,index)
|
||||||
newHero.skinId=hero.skinId
|
newHero.skinId=hero.skinId
|
||||||
table.insert(heroTeam.team,newHero)
|
table.insert(heroTeam.team,newHero)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if fightData.monsterList[1] then
|
||||||
for i = 1, #fightData.monsterList[1].fightUnitList do
|
for i = 1, #fightData.monsterList[1].fightUnitList do
|
||||||
local hero=fightData.monsterList[1].fightUnitList[i]
|
local hero=fightData.monsterList[1].fightUnitList[i]
|
||||||
local newHero={}
|
local newHero={}
|
||||||
|
|
@ -184,6 +186,7 @@ function this.RankNodeAdapter(node, data,index)
|
||||||
newHero.skinId=hero.skinId
|
newHero.skinId=hero.skinId
|
||||||
table.insert(enTeam.team,newHero)
|
table.insert(enTeam.team,newHero)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
table.insert(allHeroTeam,heroTeam)
|
table.insert(allHeroTeam,heroTeam)
|
||||||
table.insert(allEnTeam,enTeam)
|
table.insert(allEnTeam,enTeam)
|
||||||
-- allHeroTeam[i]=heroTeam
|
-- allHeroTeam[i]=heroTeam
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue