1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-18 02:11:29 +08:00

Add: freebies module / task encompasses running BattlePass, DataKey, Mail, and SupplyPack together

Upd: BattlePass, DataKey, and SupplyPack modified to run as sub-tasks under Freebies
This commit is contained in:
nEEtdo0d
2022-10-16 02:11:21 -04:00
parent 50e831fa3a
commit d14f0018fa
19 changed files with 268 additions and 338 deletions

View File

@@ -85,11 +85,12 @@ class SupplyPack(UI):
in: Any page
out: page_supply_pack, supply pack tab
"""
if not self.config.SupplyPack_WeeklyFreeSupplyPack:
return
self.ui_ensure(page_supply_pack)
if self.get_oil() < 21000:
self.supply_pack_buy(FREE_SUPPLY_PACK)
else:
logger.info('Oil > 21000, unable to buy free weekly supply pack')
self.config.task_delay(server_update=True)