2022-10-16 14:11:21 +08:00
|
|
|
from module.base.base import ModuleBase
|
2022-10-18 13:23:30 +08:00
|
|
|
from module.freebies.battle_pass import BattlePass
|
|
|
|
|
from module.freebies.data_key import DataKey
|
2024-07-18 22:48:14 +08:00
|
|
|
from module.freebies.mail_white import MailWhite
|
2025-10-09 18:33:35 +08:00
|
|
|
from module.freebies.supply_pack import SupplyPack_250814
|
2022-10-24 02:15:05 +08:00
|
|
|
from module.logger import logger
|
2022-10-16 14:11:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class Freebies(ModuleBase):
|
|
|
|
|
def run(self):
|
|
|
|
|
"""
|
|
|
|
|
Run all freebie related modules
|
|
|
|
|
"""
|
2022-10-18 13:23:30 +08:00
|
|
|
if self.config.BattlePass_Collect:
|
2022-10-24 02:15:05 +08:00
|
|
|
logger.hr('Battle pass', level=1)
|
2022-10-18 13:23:30 +08:00
|
|
|
BattlePass(self.config, self.device).run()
|
2022-10-16 14:11:21 +08:00
|
|
|
|
2022-10-18 13:23:30 +08:00
|
|
|
if self.config.DataKey_Collect:
|
2022-10-24 02:15:05 +08:00
|
|
|
logger.hr('Data key', level=1)
|
2022-10-18 13:23:30 +08:00
|
|
|
DataKey(self.config, self.device).run()
|
|
|
|
|
|
2024-07-18 22:48:14 +08:00
|
|
|
logger.hr('Mail', level=1)
|
|
|
|
|
MailWhite(self.config, self.device).run()
|
2022-10-16 14:11:21 +08:00
|
|
|
|
2025-10-09 18:33:35 +08:00
|
|
|
if self.config.SERVER not in ['en', 'jp', 'tw']:
|
|
|
|
|
if self.config.SupplyPack_Collect:
|
|
|
|
|
logger.hr('Supply pack', level=1)
|
|
|
|
|
SupplyPack_250814(self.config, self.device).run()
|
2022-10-18 13:23:30 +08:00
|
|
|
|
|
|
|
|
self.config.task_delay(server_update=True)
|