From 3b11204fd996d8f88fabf8a1599449b31904d71e Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Thu, 6 Jul 2023 21:31:16 +0800 Subject: [PATCH] Opt: Wait until 80 when farming artifacts --- tasks/dungeon/dungeon.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tasks/dungeon/dungeon.py b/tasks/dungeon/dungeon.py index 2ff84eb92..159e518fc 100644 --- a/tasks/dungeon/dungeon.py +++ b/tasks/dungeon/dungeon.py @@ -20,7 +20,11 @@ class Dungeon(DungeonUI, Combat): self.combat(team) # Scheduler + if dungeon.is_Cavern_of_Corrosion: + limit = 80 + else: + limit = 60 # Recover 1 trailbaze power each 6 minutes - cover = max(60 - self.state.TrailblazePower, 0) * 6 - logger.info(f'Currently has {self.state.TrailblazePower} Need {cover} minutes to reach 60') + cover = max(limit - self.state.TrailblazePower, 0) * 6 + logger.info(f'Currently has {self.state.TrailblazePower} need {cover} minutes to reach {limit}') self.config.task_delay(minute=cover)