1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 20:58:19 +08:00

Add: Option to delay buying weekly supply pack

This commit is contained in:
bookbug666
2023-02-19 00:45:35 +08:00
parent 03b699b615
commit deca198250
4 changed files with 31 additions and 30 deletions

View File

@@ -73,11 +73,12 @@ class SupplyPack(CampaignStatus):
self.ui_ensure(page_supply_pack)
if self.get_oil() < 21000:
if get_server_weekday >= self.config.SupplyPack_DayOfWeek:
server_today = get_server_weekday()
target = self.config.SupplyPack_DayOfWeek
target_name = day_name[target]
if server_today >= target:
self.supply_pack_buy(FREE_SUPPLY_PACK)
else:
target = self.config.SupplyPack_DayOfWeek
target_name = day_name[target]
logger.info(f'Delaying free week supply pack to {target_name}')
else:
logger.info('Oil > 21000, unable to buy free weekly supply pack')