2021-12-25 01:35:34 +08:00
|
|
|
from module.shop.shop_core import CoreShop
|
2021-07-11 11:11:32 +08:00
|
|
|
from module.shop.shop_general import GeneralShop
|
|
|
|
|
from module.shop.shop_guild import GuildShop
|
2022-06-05 22:42:08 +08:00
|
|
|
from module.shop.shop_medal import MedalShop2
|
2021-07-11 11:11:32 +08:00
|
|
|
from module.shop.shop_merit import MeritShop
|
|
|
|
|
from module.shop.ui import ShopUI
|
|
|
|
|
|
|
|
|
|
|
2022-06-05 08:59:06 +08:00
|
|
|
class RewardShop(ShopUI):
|
2023-07-14 01:43:19 +08:00
|
|
|
def run_frequent(self):
|
2025-08-15 11:58:07 +08:00
|
|
|
if self.config.SERVER in ['tw']:
|
|
|
|
|
# Munitions shops
|
|
|
|
|
self.ui_goto_shop()
|
2021-09-23 22:04:03 +08:00
|
|
|
|
2025-08-15 11:58:07 +08:00
|
|
|
self.device.click_record_clear()
|
|
|
|
|
self.shop_tab.set(main=self, left=2)
|
|
|
|
|
self.shop_nav.set(main=self, upper=1)
|
|
|
|
|
GeneralShop(self.config, self.device).run()
|
2021-09-23 22:04:03 +08:00
|
|
|
|
2021-10-30 04:10:49 +08:00
|
|
|
self.config.task_delay(server_update=True)
|
2021-09-23 22:04:03 +08:00
|
|
|
|
2021-10-30 04:10:49 +08:00
|
|
|
def run_once(self):
|
2025-08-15 11:58:07 +08:00
|
|
|
if self.config.SERVER in ['tw']:
|
|
|
|
|
# Munitions shops
|
|
|
|
|
self.ui_goto_shop()
|
|
|
|
|
|
|
|
|
|
self.device.click_record_clear()
|
|
|
|
|
self.shop_tab.set(main=self, left=2)
|
|
|
|
|
self.shop_nav.set(main=self, upper=2)
|
|
|
|
|
MeritShop(self.config, self.device).run()
|
|
|
|
|
|
|
|
|
|
self.device.click_record_clear()
|
|
|
|
|
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()
|
2023-10-14 22:22:23 +08:00
|
|
|
|
|
|
|
|
self.config.task_delay(server_update=True)
|