From e85f2ba4f24d0540fd10b742600fef1900ff0d59 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Fri, 21 Jul 2023 10:00:13 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/userdata/dungeon/dungeon_armor_entity.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lua/app/userdata/dungeon/dungeon_armor_entity.lua b/lua/app/userdata/dungeon/dungeon_armor_entity.lua index 26e4eb49..b5418cb4 100644 --- a/lua/app/userdata/dungeon/dungeon_armor_entity.lua +++ b/lua/app/userdata/dungeon/dungeon_armor_entity.lua @@ -330,10 +330,10 @@ function DungeonArmorEntity:formatTaskByController(battleBaseController, chapter return taskProgress end -function DungeonArmorEntity:getTaskDesc(chapterId, taskId, progress) +function DungeonArmorEntity:getTaskDesc(taskId, progress) local config = ConfigManager:getConfig("task_dungeon_armor")[taskId] if not config then - return I18N:getGlobalText(I18N.GlobalConst.DUNGEON_ARMOR_DESC_7), self:getPassedMaxId() >= chapterId + return I18N:getGlobalText(I18N.GlobalConst.DUNGEON_ARMOR_DESC_7) end local desc = I18N:getConfig("task_dungeon_armor")[taskId].desc @@ -355,7 +355,7 @@ function DungeonArmorEntity:getTaskDesc(chapterId, taskId, progress) color = "#49FF49" end local progressStr = string.format("(%s/%s)", color, progress, taskNum) - return desc .. progressStr, over + return desc .. progressStr end function DungeonArmorEntity:getTaskDescByIndex(chapterId, index, battleBaseController, taskProgress) @@ -374,7 +374,8 @@ function DungeonArmorEntity:getTaskDescByIndex(chapterId, index, battleBaseContr return GConst.EMPTY_STRING end - return self:getTaskDesc(chapterId, taskId, taskProgress[taskId]) + local over = self:getStarDone(chapterId, index) + return self:getTaskDesc(taskId, taskProgress[taskId]), over end return DungeonArmorEntity \ No newline at end of file