Fix: Dungeon didnt call daily if stamina quest is done

This commit is contained in:
LmeSzinc 2024-01-17 18:11:31 +08:00
parent 34d6019c61
commit 5016f0e53b

View File

@ -405,11 +405,15 @@ class Dungeon(DungeonStamina, DungeonEvent, Combat):
return require return require
def check_stamina_quest(self, stamina_used: int): def check_stamina_quest(self, stamina_used: int):
if KEYWORD_BATTLE_PASS_QUEST.Consume_a_total_of_1_Trailblaze_Power_1400_Trailblazer_Power_max not in self.weekly_quests: logger.info(f'Used {stamina_used} stamina')
return
logger.info(f'Done Consume_a_total_of_1_Trailblaze_Power_1400_Trailblazer_Power_max stamina {stamina_used}') if KEYWORD_BATTLE_PASS_QUEST.Consume_a_total_of_1_Trailblaze_Power_1400_Trailblazer_Power_max in self.weekly_quests:
self.config.stored.BattlePassQuestTrailblazePower.add(stamina_used) logger.info(f'Done Consume_a_total_of_1_Trailblaze_Power_1400_Trailblazer_Power_max stamina {stamina_used}')
if self.config.stored.BattlePassQuestTrailblazePower.is_full(): self.config.stored.BattlePassQuestTrailblazePower.add(stamina_used)
logger.info('Achieved weekly quest Consume_a_total_of_1_Trailblaze_Power_1400_Trailblazer_Power_max') if self.config.stored.BattlePassQuestTrailblazePower.is_full():
self.achieved_weekly_quest = True logger.info('Achieved weekly quest Consume_a_total_of_1_Trailblaze_Power_1400_Trailblazer_Power_max')
self.achieved_weekly_quest = True
if KEYWORDS_DAILY_QUEST.Consume_120_Trailblaze_Power in self.daily_quests:
logger.info(f'Done Consume_120_Trailblaze_Power stamina {stamina_used}')
self.achieved_daily_quest = True