From 53eac6dc8c05c7198c92ac84acba5917ecd872fb Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Fri, 12 Jan 2024 17:10:11 +0800 Subject: [PATCH] Fix: Update weekly dashboard (#270) --- tasks/dungeon/weekly.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/dungeon/weekly.py b/tasks/dungeon/weekly.py index 5ef20380f..d0f1962bf 100644 --- a/tasks/dungeon/weekly.py +++ b/tasks/dungeon/weekly.py @@ -82,6 +82,11 @@ class WeeklyDungeon(Dungeon): # Check daily if self.achieved_daily_quest: self.config.task_call('DailyQuest') + # Update dashboard + self.config.stored.EchoOfWar.add(-count) + if self.config.stored.EchoOfWar.value < 0: + logger.warning(f'Invalid EchoOfWar value, revise to 0') + self.config.stored.EchoOfWar.value = 0 # Finished all remains if count >= remain: logger.info('All Echo_of_War rewards got')