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

Opt: Event stage and SP stage merge into one setting

This commit is contained in:
LmeSzinc
2020-09-17 21:43:10 +08:00
parent 5d24da429b
commit 3c8976ddd9
6 changed files with 6 additions and 26 deletions

View File

@@ -142,7 +142,7 @@ class AzurLaneConfig:
module.event
"""
EVENT_NAME = ''
CAMPAIGN_EVENT = ''
EVENT_STAGE = ''
EVENT_NAME_AB = ''
ENABLE_EVENT_AB = False
ENABLE_EVENT_SP = False
@@ -633,11 +633,7 @@ class AzurLaneConfig:
# Event
option = config['Event']
self.EVENT_NAME = option['event_name']
name = ''.join(os.listdir(f'./campaign/{self.EVENT_NAME}'))
if 'sp1' in name or 'sp2' in name or 'sp3' in name:
self.CAMPAIGN_EVENT = option['sp_stage']
else:
self.CAMPAIGN_EVENT = option['event_stage']
self.EVENT_STAGE = option['event_stage']
# Raid
option = config['Raid']