符文副本结算波次处理

This commit is contained in:
Fang 2023-10-09 11:09:44 +08:00
parent d00dc49019
commit 5437d506a6
2 changed files with 5 additions and 1 deletions

View File

@ -388,7 +388,7 @@ end
function BattleControllerDungeonRune:controllBattleEnd() function BattleControllerDungeonRune:controllBattleEnd()
self.combatReport = { self.combatReport = {
battleType = GConst.BattleConst.BATTLE_TYPE.DUNGEON_RUNE, battleType = GConst.BattleConst.BATTLE_TYPE.DUNGEON_RUNE,
wave = 0, wave = self:getWaveIndex(),
victory = self.victory, victory = self.victory,
} }
local atkReport = {} local atkReport = {}
@ -402,6 +402,9 @@ function BattleControllerDungeonRune:controllBattleEnd()
table.insert(atkReport, report) table.insert(atkReport, report)
end end
self.combatReport.atkReport = atkReport self.combatReport.atkReport = atkReport
if not self.victory then
self.combatReport.wave = self.combatReport.wave - 1
end
BIReport:postFightHeroReport(self.combatReport.battleType, atkReport) BIReport:postFightHeroReport(self.combatReport.battleType, atkReport)
ModuleManager.DungeonRuneManager:reqFightSettlement(self.chapterId, self.combatReport, self.taskProgress, self.dungeonRuneRemainRoundCount) ModuleManager.DungeonRuneManager:reqFightSettlement(self.chapterId, self.combatReport, self.taskProgress, self.dungeonRuneRemainRoundCount)
end end

View File

@ -82,6 +82,7 @@ function DungeonRuneManager:rspFight(result)
end end
function DungeonRuneManager:reqFightSettlement(chapterId, combatReport, taskProgress, remainRound) function DungeonRuneManager:reqFightSettlement(chapterId, combatReport, taskProgress, remainRound)
taskProgress[GConst.BattleConst.BATTLE_TASK_FIELD.PASS_WAVE] = 0-- 符文副本不需要波次数据
local parmas = { local parmas = {
id = chapterId, id = chapterId,
win = combatReport.victory, win = combatReport.victory,