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