1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-15 02:57:19 +08:00
Files
AzurLaneAutoScript/module/event/campaign_sp.py

21 lines
685 B
Python
Raw Normal View History

2020-07-28 19:45:38 +08:00
import os
from module.campaign.run import CampaignRun
from module.logger import logger
class CampaignSP(CampaignRun):
def run(self):
if not os.path.exists(f'./campaign/{self.config.Campaign_Event}/sp.py'):
logger.info(f'./campaign/{self.config.Campaign_Event}/sp.py not exists')
logger.info(f'This event do not have SP, skip')
self.config.Scheduler_Enable = False
self.config.task_stop()
2020-07-28 19:45:38 +08:00
super().run(name=self.config.Campaign_Name, folder=self.config.Campaign_Event, total=1)
if self.run_count > 0:
self.config.task_delay(server_update=True)
2020-07-28 19:45:38 +08:00
else:
self.config.task_stop()