mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-22 08:13:44 +08:00
Fix: [TW] Keep TW shops as the old (#2628)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from module.base.decorator import Config
|
||||
from module.logger import logger
|
||||
from module.shop.shop_core import CoreShop
|
||||
from module.shop.shop_general import GeneralShop
|
||||
@@ -16,6 +17,31 @@ class RewardShop(ShopUI):
|
||||
|
||||
self.config.task_delay(server_update=True)
|
||||
|
||||
@Config.when(SERVER='tw')
|
||||
def run_once(self):
|
||||
# Munitions shops
|
||||
self.ui_goto_shop()
|
||||
self.shop_swipe()
|
||||
|
||||
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()
|
||||
|
||||
if self.shop_bottom_navbar_ensure(left=2):
|
||||
GuildShop(self.config, self.device).run()
|
||||
|
||||
# 2022.06.01 Medal shop has been moved to page_munitions
|
||||
# Now the left most shop, its UI has changed considerably
|
||||
if self.shop_bottom_navbar_ensure(left=1):
|
||||
MedalShop2(self.config, self.device).run()
|
||||
|
||||
# Cannot go back to general shop so don't stay in page_munitions
|
||||
self.ui_goto_main()
|
||||
self.config.task_delay(server_update=True)
|
||||
|
||||
@Config.when(SERVER=None)
|
||||
def run_once(self):
|
||||
# Munitions shops
|
||||
self.ui_goto_shop()
|
||||
|
||||
Reference in New Issue
Block a user