mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Tmp: [TW] Disable shop before it confirm working
This commit is contained in:
parent
7f1021c79f
commit
653260f431
@ -25,7 +25,8 @@ class Freebies(ModuleBase):
|
|||||||
if self.config.SupplyPack_Collect:
|
if self.config.SupplyPack_Collect:
|
||||||
logger.hr('Supply pack', level=1)
|
logger.hr('Supply pack', level=1)
|
||||||
if self.config.SERVER in ['tw']:
|
if self.config.SERVER in ['tw']:
|
||||||
SupplyPack(self.config, self.device).run()
|
# SupplyPack(self.config, self.device).run()
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
SupplyPack_250814(self.config, self.device).run()
|
SupplyPack_250814(self.config, self.device).run()
|
||||||
|
|
||||||
|
|||||||
@ -1,52 +1,33 @@
|
|||||||
from module.shop.shop_core import CoreShop, CoreShop_250814
|
from module.shop.shop_core import CoreShop_250814
|
||||||
from module.shop.shop_general import GeneralShop, GeneralShop_250814
|
from module.shop.shop_general import GeneralShop_250814
|
||||||
from module.shop.shop_guild import GuildShop, GuildShop_250814
|
from module.shop.shop_guild import GuildShop_250814
|
||||||
from module.shop.shop_medal import MedalShop2, MedalShop2_250814
|
from module.shop.shop_medal import MedalShop2_250814
|
||||||
from module.shop.shop_merit import MeritShop, MeritShop_250814
|
from module.shop.shop_merit import MeritShop_250814
|
||||||
from module.shop.ui import ShopUI
|
from module.shop.ui import ShopUI
|
||||||
|
|
||||||
|
|
||||||
class RewardShop(ShopUI):
|
class RewardShop(ShopUI):
|
||||||
def run_frequent(self):
|
def run_frequent(self):
|
||||||
# Munitions shops
|
# Munitions shops
|
||||||
self.ui_goto_shop()
|
|
||||||
if self.config.SERVER in ['tw']:
|
if self.config.SERVER in ['tw']:
|
||||||
self.device.click_record_clear()
|
self.config.task_delay(server_update=True)
|
||||||
self.shop_tab.set(main=self, left=2)
|
self.config.task_stop()
|
||||||
self.shop_nav.set(main=self, upper=1)
|
|
||||||
GeneralShop(self.config, self.device).run()
|
self.ui_goto_shop()
|
||||||
elif self.config.SERVER in ['cn', 'en']:
|
|
||||||
self.device.click_record_clear()
|
self.device.click_record_clear()
|
||||||
self.shop_tab_250814.set(main=self, upper=1)
|
self.shop_tab_250814.set(main=self, upper=1)
|
||||||
self.shop_nav_250814.set(main=self, left=1)
|
self.shop_nav_250814.set(main=self, left=1)
|
||||||
GeneralShop_250814(self.config, self.device).run()
|
GeneralShop_250814(self.config, self.device).run()
|
||||||
|
|
||||||
self.config.task_delay(server_update=True)
|
self.config.task_delay(server_update=True)
|
||||||
|
|
||||||
def run_once(self):
|
def run_once(self):
|
||||||
# Munitions shops
|
# Munitions shops
|
||||||
self.ui_goto_shop()
|
|
||||||
if self.config.SERVER in ['tw']:
|
if self.config.SERVER in ['tw']:
|
||||||
self.device.click_record_clear()
|
self.config.task_delay(server_update=True)
|
||||||
self.shop_tab.set(main=self, left=2)
|
self.config.task_stop()
|
||||||
self.shop_nav.set(main=self, upper=2)
|
|
||||||
MeritShop(self.config, self.device).run()
|
|
||||||
|
|
||||||
self.device.click_record_clear()
|
self.ui_goto_shop()
|
||||||
self.shop_tab.set(main=self, left=2)
|
|
||||||
self.shop_nav.set(main=self, upper=3)
|
|
||||||
GuildShop(self.config, self.device).run()
|
|
||||||
|
|
||||||
# core limited, core monthly, medal, prototype
|
|
||||||
self.device.click_record_clear()
|
|
||||||
self.shop_tab.set(main=self, left=1)
|
|
||||||
self.shop_nav.set(main=self, upper=2)
|
|
||||||
CoreShop(self.config, self.device).run()
|
|
||||||
|
|
||||||
self.device.click_record_clear()
|
|
||||||
self.shop_tab.set(main=self, left=1)
|
|
||||||
self.shop_nav.set(main=self, upper=3)
|
|
||||||
MedalShop2(self.config, self.device).run()
|
|
||||||
elif self.config.SERVER in ['cn', 'en']:
|
|
||||||
self.device.click_record_clear()
|
self.device.click_record_clear()
|
||||||
self.shop_tab_250814.set(main=self, upper=1)
|
self.shop_tab_250814.set(main=self, upper=1)
|
||||||
self.shop_nav_250814.set(main=self, left=2)
|
self.shop_nav_250814.set(main=self, left=2)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user