修复bug

This commit is contained in:
xiekaidong 2023-09-12 19:46:37 +08:00
parent d4c7cf71b0
commit dd62b41f00
2 changed files with 1 additions and 14 deletions

View File

@ -28,9 +28,6 @@ function BattleControllerDungeonRune:initOther()
if self.battleUI then
local desc = self.dungeonRuneRemainRoundCount
if not self.isBossChapter then
desc = I18N:getGlobalText(I18N.GlobalConst.DUNGEON_WEAPON_DESC_6, self.chapterId)
end
self.battleUI:refreshWave(desc, GConst.ATLAS_PATH.COMMON, "common_dec_15")
end
@ -161,9 +158,6 @@ function BattleControllerDungeonRune:enterRoundBegin()
self.dungeonRuneRemainRoundCount = self.dungeonRuneRemainRoundCount - 1
if self.battleUI then
local desc = self.dungeonRuneRemainRoundCount + 1
if not self.isBossChapter then
desc = I18N:getGlobalText(I18N.GlobalConst.DUNGEON_WEAPON_DESC_6, self.chapterId)
end
self.battleUI:refreshWave(desc, GConst.ATLAS_PATH.COMMON, "common_dec_15")
end
BattleController.enterRoundBegin(self)
@ -186,9 +180,6 @@ function BattleControllerDungeonRune:enterRoundBegin()
end
if self.battleUI then
local desc = self.dungeonRuneRemainRoundCount + 1
if not self.isBossChapter then
desc = I18N:getGlobalText(I18N.GlobalConst.DUNGEON_WEAPON_DESC_6, self.chapterId)
end
self.battleUI:refreshWave(desc, GConst.ATLAS_PATH.COMMON, "common_dec_15")
end
BattleController.enterRoundBegin(self)

View File

@ -500,14 +500,10 @@ function BattleUI:refreshTaskNode()
if self.battleController.battleType == GConst.BattleConst.BATTLE_TYPE.DUNGEON_RUNE then
self.taskNode:setLocalScale(0.6, 0.6, 0.6)
local runeData = DataManager.DungeonData:getDungeonDataByType(ModuleManager.MODULE_KEY.RUNES_OPEN)
local isBossChapter = runeData:isBossChapter(self.battleController.chapterId)
local chapterCondition = runeData:getChapterCondition(self.battleController.chapterId)
local taskProgress = ModuleManager.DungeonRuneManager:getTaskStatus(self.battleController, chapterCondition)
for index, cell in ipairs(self.taskCells) do
local newIndex = index
if isBossChapter then
newIndex = index + 1
end
local newIndex = index + 1
local condition = chapterCondition[newIndex]
if condition then
cell:getBaseObject():setActive(true)