修复bug
This commit is contained in:
parent
d4c7cf71b0
commit
dd62b41f00
@ -28,9 +28,6 @@ function BattleControllerDungeonRune:initOther()
|
|||||||
|
|
||||||
if self.battleUI then
|
if self.battleUI then
|
||||||
local desc = self.dungeonRuneRemainRoundCount
|
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")
|
self.battleUI:refreshWave(desc, GConst.ATLAS_PATH.COMMON, "common_dec_15")
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -161,9 +158,6 @@ function BattleControllerDungeonRune:enterRoundBegin()
|
|||||||
self.dungeonRuneRemainRoundCount = self.dungeonRuneRemainRoundCount - 1
|
self.dungeonRuneRemainRoundCount = self.dungeonRuneRemainRoundCount - 1
|
||||||
if self.battleUI then
|
if self.battleUI then
|
||||||
local desc = self.dungeonRuneRemainRoundCount + 1
|
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")
|
self.battleUI:refreshWave(desc, GConst.ATLAS_PATH.COMMON, "common_dec_15")
|
||||||
end
|
end
|
||||||
BattleController.enterRoundBegin(self)
|
BattleController.enterRoundBegin(self)
|
||||||
@ -186,9 +180,6 @@ function BattleControllerDungeonRune:enterRoundBegin()
|
|||||||
end
|
end
|
||||||
if self.battleUI then
|
if self.battleUI then
|
||||||
local desc = self.dungeonRuneRemainRoundCount + 1
|
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")
|
self.battleUI:refreshWave(desc, GConst.ATLAS_PATH.COMMON, "common_dec_15")
|
||||||
end
|
end
|
||||||
BattleController.enterRoundBegin(self)
|
BattleController.enterRoundBegin(self)
|
||||||
|
|||||||
@ -500,14 +500,10 @@ function BattleUI:refreshTaskNode()
|
|||||||
if self.battleController.battleType == GConst.BattleConst.BATTLE_TYPE.DUNGEON_RUNE then
|
if self.battleController.battleType == GConst.BattleConst.BATTLE_TYPE.DUNGEON_RUNE then
|
||||||
self.taskNode:setLocalScale(0.6, 0.6, 0.6)
|
self.taskNode:setLocalScale(0.6, 0.6, 0.6)
|
||||||
local runeData = DataManager.DungeonData:getDungeonDataByType(ModuleManager.MODULE_KEY.RUNES_OPEN)
|
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 chapterCondition = runeData:getChapterCondition(self.battleController.chapterId)
|
||||||
local taskProgress = ModuleManager.DungeonRuneManager:getTaskStatus(self.battleController, chapterCondition)
|
local taskProgress = ModuleManager.DungeonRuneManager:getTaskStatus(self.battleController, chapterCondition)
|
||||||
for index, cell in ipairs(self.taskCells) do
|
for index, cell in ipairs(self.taskCells) do
|
||||||
local newIndex = index
|
local newIndex = index + 1
|
||||||
if isBossChapter then
|
|
||||||
newIndex = index + 1
|
|
||||||
end
|
|
||||||
local condition = chapterCondition[newIndex]
|
local condition = chapterCondition[newIndex]
|
||||||
if condition then
|
if condition then
|
||||||
cell:getBaseObject():setActive(true)
|
cell:getBaseObject():setActive(true)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user