1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-21 14:55:35 +08:00

Fix: Disable MAP_IS_ONE_TIME_STAGE in event dailies, last fix not working

This commit is contained in:
LmeSzinc
2022-01-10 00:13:00 +08:00
parent 9a8f219dd0
commit 0765be5366
4 changed files with 37 additions and 46 deletions

View File

@@ -1,19 +1,18 @@
import os
from module.campaign.run import CampaignRun
from module.config.config import TaskEnd
from module.event.base import EventBase
from module.logger import logger
class CampaignSP(CampaignRun):
def run(self):
class CampaignSP(EventBase):
def run(self, *args, **kwargs):
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()
self.config.temporary(MAP_IS_ONE_TIME_STAGE=False)
try:
super().run(name=self.config.Campaign_Name, folder=self.config.Campaign_Event, total=1)
except TaskEnd: