From 2015b03a74244f6cc699df6252e54e2b2def5c16 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Fri, 4 Aug 2023 15:17:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BA=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 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lua/app/userdata/dungeon/dungeon_armor_entity.lua b/lua/app/userdata/dungeon/dungeon_armor_entity.lua index 0697e22e..194b68fc 100644 --- a/lua/app/userdata/dungeon/dungeon_armor_entity.lua +++ b/lua/app/userdata/dungeon/dungeon_armor_entity.lua @@ -331,6 +331,7 @@ function DungeonArmorEntity:formatTaskByController(battleBaseController, chapter totalRound = totalRound + round end + local config = ConfigManager:getConfig("task_dungeon_armor") taskProgress = { [0] = pass, [1] = hpp, @@ -338,7 +339,19 @@ function DungeonArmorEntity:formatTaskByController(battleBaseController, chapter [3] = totalRound, [4] = hpp, [5] = hpp, + [0] = pass } + if config then + for id, info in pairs(config) do + if info.type == 1 then + taskProgress[id] = hpp + elseif info.type == 2 then + taskProgress[id] = bossRoundCount + elseif info.type == 3 then + taskProgress[id] = totalRound + end + end + end return taskProgress end