Add: Do weekly for planner

This commit is contained in:
LmeSzinc 2024-05-27 03:03:11 +08:00
parent d615886993
commit 8cd2b90346
2 changed files with 6 additions and 2 deletions

View File

@ -51,6 +51,10 @@ class WeeklyDungeon(Dungeon):
self.weekly_quests = self.config.stored.BattlePassWeeklyQuest.load_quests()
dungeon = DungeonList.find(self.config.Weekly_Name)
planner = self.planner.get_weekly()
if planner is not None:
dungeon = planner
logger.info('DungeonWeekly', dungeon)
# UI switches
self.dungeon_tab_goto(KEYWORDS_DUNGEON_TAB.Survival_Index)

View File

@ -439,10 +439,10 @@ class PlannerProgressParser:
if dungeon is None:
logger.error(f'Item {item} has nowhere to be farmed')
continue
logger.info(f'Planner farm: {dungeon}')
logger.info(f'Planner weekly farm: {dungeon}')
return dungeon
logger.info('Planner farm empty')
logger.info('Planner weekly farm empty')
return None
def row_come_from_dungeon(self, dungeon: DungeonList | None) -> StoredPlannerProxy | None: