1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 09:48:20 +08:00

Add: Do os in daily

This commit is contained in:
LmeSzinc
2021-04-27 16:27:55 +08:00
parent 0d0abe4ed1
commit 127212b204
8 changed files with 57 additions and 19 deletions

View File

@@ -296,6 +296,12 @@ class Reward(RewardCommission, RewardTacticalClass, RewardResearch, RewardDorm,
# Ash assist doesn't finish any daily mission, so not counted in.
# count += 1
if self.config.DO_OS_IN_DAILY:
from module.campaign.os_run import OSCampaignRun
az = OSCampaignRun(self.config, device=self.device)
if not az.record_executed_since():
az.run_daily()
logger.attr('Daily_executed', f'{count}/{total}')
return count