diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/BattleView.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/BattleView.lua index a548484b53..a95adfd25e 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/BattleView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/BattleView.lua @@ -321,6 +321,25 @@ end -- 结束战斗 function this.EndBattle(result) + --前端 + local hpList={} + table.insert(hpList," 我方1-6剩余血量:") + for i = 1, 6 do + local role=RoleManager.GetRole(0,i) + if role then + table.insert(hpList,role:GetRoleData(RoleDataName.Hp)) + end + end + table.insert(hpList," 敌方1-6剩余血量:") + for i = 1, 6 do + local role=RoleManager.GetRole(1,i) + if role then + table.insert(hpList,role:GetRoleData(RoleDataName.Hp)) + end + end + table.insert(hpList," 结果:") + table.insert(hpList,result) + LogWarn(BattleManager.PrintBattleTable(hpList)) -- 清空数据 this.Clear() -- 判断结果