1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-24 14:49:05 +08:00
Files
AzurLaneAutoScript/module/shop/shop_reward.py

43 lines
1.3 KiB
Python
Raw Normal View History

from module.gacha.ui import GachaUI
2021-12-24 12:35:34 -05:00
from module.shop.shop_core import CoreShop
2021-07-10 23:11:32 -04:00
from module.shop.shop_general import GeneralShop
from module.shop.shop_guild import GuildShop
from module.shop.shop_merit import MeritShop
from module.shop.ui import ShopUI
class RewardShop(ShopUI, GachaUI):
def run_frequent(self):
# Munitions shops
2021-09-23 22:04:03 +08:00
self.ui_goto_shop()
GeneralShop(self.config, self.device).run()
2021-09-23 22:04:03 +08:00
self.config.task_delay(server_update=True)
2021-09-23 22:04:03 +08:00
def run_once(self):
# Munitions shops
self.ui_goto_shop()
self.shop_swipe()
2021-09-23 22:04:03 +08:00
if self.shop_bottom_navbar_ensure(left=5):
MeritShop(self.config, self.device).run()
if self.shop_bottom_navbar_ensure(left=4):
CoreShop(self.config, self.device).run()
2021-09-23 22:04:03 +08:00
if self.shop_bottom_navbar_ensure(left=2):
GuildShop(self.config, self.device).run()
2021-12-24 12:35:34 -05:00
# 2022.06.01 Medal shop and gacha shop have been moved to shop
# Gacha shops
# self.ui_goto_gacha()
# if not self.gacha_side_navbar_ensure(bottom=2):
# return
# shop = MedalShop(self.config, self.device)
# for _ in [1, 2]:
# if self.gacha_bottom_navbar_ensure(left=_, is_build=False):
# shop.run()
2021-12-22 00:46:39 +08:00
self.config.task_delay(server_update=True)