mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-13 23:19:21 +08:00
Tmp: Disable shop tasks until assets are updated
This commit is contained in:
@@ -70,6 +70,10 @@ class SupplyPack(CampaignStatus):
|
|||||||
in: Any page
|
in: Any page
|
||||||
out: page_supply_pack, supply pack tab
|
out: page_supply_pack, supply pack tab
|
||||||
"""
|
"""
|
||||||
|
if self.config.SERVER in ['cn', 'en', 'jp']:
|
||||||
|
logger.warning(f'SupplyPack is disabled in server {self.config.SERVER.upper()} until assets are updated')
|
||||||
|
return
|
||||||
|
|
||||||
self.ui_ensure(page_supply_pack)
|
self.ui_ensure(page_supply_pack)
|
||||||
|
|
||||||
if self.get_oil() < 21000:
|
if self.get_oil() < 21000:
|
||||||
|
|||||||
@@ -10,6 +10,11 @@ from module.shop.ui import ShopUI
|
|||||||
|
|
||||||
class RewardShop(ShopUI):
|
class RewardShop(ShopUI):
|
||||||
def run_frequent(self):
|
def run_frequent(self):
|
||||||
|
if self.config.SERVER in ['cn', 'en', 'jp']:
|
||||||
|
logger.warning(f'Task ShopOnce is disabled in server {self.config.SERVER.upper()} until assets are updated')
|
||||||
|
self.config.task_delay(server_update=True)
|
||||||
|
self.config.task_stop()
|
||||||
|
|
||||||
# Munitions shops
|
# Munitions shops
|
||||||
self.ui_goto_shop()
|
self.ui_goto_shop()
|
||||||
|
|
||||||
@@ -43,6 +48,11 @@ class RewardShop(ShopUI):
|
|||||||
|
|
||||||
@Config.when(SERVER=None)
|
@Config.when(SERVER=None)
|
||||||
def run_once(self):
|
def run_once(self):
|
||||||
|
if self.config.SERVER in ['cn', 'en', 'jp']:
|
||||||
|
logger.warning(f'Task ShopOnce is disabled in server {self.config.SERVER.upper()} until assets are updated')
|
||||||
|
self.config.task_delay(server_update=True)
|
||||||
|
self.config.task_stop()
|
||||||
|
|
||||||
# Munitions shops
|
# Munitions shops
|
||||||
self.ui_goto_shop()
|
self.ui_goto_shop()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user