1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-22 14:03:44 +08:00
This commit is contained in:
2025-08-29 23:25:41 +08:00
22 changed files with 109 additions and 204 deletions

View File

@@ -678,19 +678,12 @@ class ConfigUpdater:
# Update to latest event
server = to_server(deep_get(new, 'Alas.Emulator.PackageName', 'cn'))
if not is_template:
for task in EVENTS + RAIDS + COALITIONS:
for task in EVENTS + GEMS_FARMINGS + RAIDS + COALITIONS:
opts = deep_get(self.args, keys=f'{task}.Campaign.Event.option_{server}', default=[])
if not deep_get(new, keys=f'{task}.Campaign.Event', default='campaign_main') in opts:
deep_set(new,
keys=f'{task}.Campaign.Event',
value=opts[0])
for task in GEMS_FARMINGS:
opts = deep_get(self.args, keys=f'{task}.Campaign.Event.option_{server}', default=[])
if not deep_get(new, keys=f'{task}.Campaign.Event', default='campaign_main') in ['campaign_main'] + opts:
deep_set(new,
keys=f'{task}.Campaign.Event',
value=opts[0])
# War archive does not allow campaign_main
for task in WAR_ARCHIVES: