def daily_wrapper_run(self): count = 0 total = 6 if self.config.ENABLE_EXERCISE: from module.exercise.exercise import Exercise az = Exercise(self.config, device=self.device) if not az.record_executed_since(): az.run() az.record_save() count += 1 if self.config.ENABLE_DAILY_MISSION: from module.daily.daily import Daily az = Daily(self.config, device=self.device) if not az.record_executed_since(): az.run() az.record_save() count += 1 if self.config.ENABLE_HARD_CAMPAIGN: from module.hard.hard import CampaignHard az = CampaignHard(self.config, device=self.device) if not az.record_executed_since(): az.run() az.record_save() count += 1 if self.config.ENABLE_EVENT_SP: from module.event.campaign_sp import CampaignSP az = CampaignSP(self.config, device=self.device) if az.run_event_daily_sp(): count += 1 if self.config.ENABLE_EVENT_AB: from module.event.campaign_ab import CampaignAB az = CampaignAB(self.config, device=self.device) if az.run_event_daily(): count += 1 if self.config.ENABLE_RAID_DAILY: from module.raid.daily import RaidDaily az = RaidDaily(self.config, device=self.device) if not az.record_executed_since(): az.run() az.record_save() count += 1 if self.config.ENABLE_OS_ASH_ASSIST: from module.os_ash.ash import AshDaily az = AshDaily(self.config, device=self.device) if not az.record_executed_since(): az.run() az.record_save() # Ash assist doesn't finish any daily mission, so not counted in. # count += 1 logger.attr('Daily_executed', f'{count}/{total}') return count
def daily_wrapper_run(self): count = 0 total = 5 if self.config.ENABLE_DAILY_MISSION: from module.daily.daily import Daily az = Daily(self.config, device=self.device) if not az.record_executed_since(): az.run() az.record_save() count += 1 if self.config.ENABLE_HARD_CAMPAIGN: from module.hard.hard import CampaignHard az = CampaignHard(self.config, device=self.device) if not az.record_executed_since(): az.run() az.record_save() count += 1 if self.config.ENABLE_EXERCISE: from module.exercise.exercise import Exercise az = Exercise(self.config, device=self.device) if not az.record_executed_since(): az.run() az.record_save() count += 1 if self.config.ENABLE_EVENT_NAME_AB: from module.event.campaign_ab import CampaignAB az = CampaignAB(self.config, device=self.device) az.run_event_daily() count += 1 if self.config.ENABLE_RAID_DAILY: from module.raid.daily import RaidDaily az = RaidDaily(self.config, device=self.device) if not az.record_executed_since(): az.run() az.record_save() count += 1 logger.attr('Daily_executed', f'{count}/{total}') return count
def daily(self): """ Method to run daily missions. """ if self.config.ENABLE_DAILY_MISSION: from module.daily.daily import Daily az = Daily(self.config, device=self.device) if not az.record_executed_since(): az.run() az.record_save() if self.config.ENABLE_HARD_CAMPAIGN: from module.hard.hard import CampaignHard az = CampaignHard(self.config, device=self.device) if not az.record_executed_since(): az.run() az.record_save() if self.config.ENABLE_EXERCISE: from module.exercise.exercise import Exercise az = Exercise(self.config, device=self.device) if not az.record_executed_since(): az.run() az.record_save() if self.config.ENABLE_EVENT_NAME_AB: from module.event.campaign_ab import CampaignAB az = CampaignAB(self.config, device=self.device) az.run_event_daily() if self.config.ENABLE_RAID_DAILY: from module.raid.daily import RaidDaily az = RaidDaily(self.config, device=self.device) if not az.record_executed_since(): az.run(self.config.RAID_DAILY_NAME) az.record_save() self.reward_when_finished()
def daily_wrapper_run(self): count = 0 total = 6 if self.config.ENABLE_EXERCISE: from module.exercise.exercise import Exercise az = Exercise(self.config, device=self.device) if not az.record_executed_since(): az.run() az.record_save() count += 1 self.device.send_notification('Daily Exercises', 'Exercise daily finished.') if self.config.ENABLE_DAILY_MISSION: from module.daily.daily import Daily az = Daily(self.config, device=self.device) if not az.record_executed_since(): az.run() az.record_save() count += 1 self.device.send_notification('Daily Mission', 'Daily raid finished.') self.config.GUILD_POPUP_TRIGGERED = az.config.GUILD_POPUP_TRIGGERED \ if not self.config.GUILD_POPUP_TRIGGERED else self.config.GUILD_POPUP_TRIGGERED if self.config.ENABLE_HARD_CAMPAIGN: from module.hard.hard import CampaignHard az = CampaignHard(self.config, device=self.device) if not az.record_executed_since(): az.run() az.record_save() count += 1 self.device.send_notification('Daily Hard', 'Daily hard campaign finished.') self.config.GUILD_POPUP_TRIGGERED = az.config.GUILD_POPUP_TRIGGERED \ if not self.config.GUILD_POPUP_TRIGGERED else self.config.GUILD_POPUP_TRIGGERED if self.config.ENABLE_EVENT_SP: from module.event.campaign_sp import CampaignSP az = CampaignSP(self.config, device=self.device) if az.run_event_daily_sp(): count += 1 self.device.send_notification('Daily Event SP', 'Daily event SP finished.') self.config.GUILD_POPUP_TRIGGERED = az.config.GUILD_POPUP_TRIGGERED if self.config.ENABLE_EVENT_AB: from module.event.campaign_ab import CampaignAB az = CampaignAB(self.config, device=self.device) if az.run_event_daily(): count += 1 self.device.send_notification('Daily Event AB', 'Daily event AB finished.') self.config.GUILD_POPUP_TRIGGERED = az.config.GUILD_POPUP_TRIGGERED if self.config.ENABLE_RAID_DAILY: from module.raid.daily import RaidDaily az = RaidDaily(self.config, device=self.device) if not az.record_executed_since(): az.run() az.record_save() count += 1 self.device.send_notification('Daily Event RAID', 'Daily event RAID finished.') if self.config.ENABLE_OS_ASH_ASSIST: from module.os_ash.ash import AshDaily az = AshDaily(self.config, device=self.device) if not az.record_executed_since(): az.run() az.record_save() # Ash assist doesn't finish any daily mission, so not counted in. # count += 1 logger.attr('Daily_executed', f'{count}/{total}') return count
def raid_daily(self): from module.raid.daily import RaidDaily RaidDaily(config=self.config, device=self.device).run()