【战斗】======战斗结果显示主角伤害治疗修改

dev_chengFeng
wangzhenxing 2021-11-02 18:00:31 +08:00
parent 251a91b7fc
commit 46fe5a1b8d
3 changed files with 23 additions and 1 deletions

View File

@ -70,7 +70,7 @@ function BattleAnalysisManager:OnAddRole(role)
end
function BattleAnalysisManager:OnAddMonster(monster)
if monster.position==100 or monster.uid==20100 then
monster.type=1
--monster.type=1
end
local data = self:GetRecordData(monster)
data.info = monster

View File

@ -146,6 +146,15 @@ function this.GetBattleBestData(Id)
local _MaxDamageValue = -1
local _AllDamageValue = 0
local battleRecord = this.GetBattleRecord(Id)
local monster=battleRecord.mdata
if monster then
for key, value in pairs(monster) do
if key==100 then
value.info.type=1
battleRecord.data[key]=value
end
end
end
for _, data in pairs(battleRecord.data) do
-- 怪物只显示最后一层的怪物信息
if data.info and data.info.camp == 0 then

View File

@ -179,9 +179,22 @@ function this.OnTabChange(index, lastIndex)
end
-- 创建
local monster=this.battleRecord.mdata
local showList = this.battleRecord.data
if showType == 4 then
showList = this.battleRecord.mdata
for key, value in pairs(monster) do
if key==100 or key==101 then
table.remove(showList,key)
end
end
else
for key, value in pairs(monster) do
if key==100 or key==101 then
value.info.type=1
showList[key]=value
end
end
end
for _, data in pairs(showList) do
CreateMonsterItem(data)