From e67a49ec29b93593a1bd8a6529c4b8680d40f379 Mon Sep 17 00:00:00 2001 From: 0O0o0oOoO00 <11174151+0o0o0oooo00@users.noreply.github.com> Date: Fri, 23 Jan 2026 11:01:23 +0800 Subject: [PATCH] fix: copy full original method from ConfigUpdater.config_update --- module/config/config_updater.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/module/config/config_updater.py b/module/config/config_updater.py index dc0635eef..4759541d2 100644 --- a/module/config/config_updater.py +++ b/module/config/config_updater.py @@ -869,6 +869,21 @@ class ConfigUpdater(ConfigUpdater): keys=f'{task}.Campaign.Event', value=deep_get(self.args, f'{task}.Campaign.Event.option_{server}')[0]) + # Events does not allow default stage 12-4 + def default_stage(t, stage): + if deep_get(new, keys=f'{t}.Campaign.Name', default='12-4') in ['7-2', '12-4']: + deep_set(new, keys=f'{t}.Campaign.Name', value=stage) + + for task in EVENTS + WAR_ARCHIVES: + default_stage(task, 'D3') + for task in COALITIONS: + default_stage(task, 'area1-normal') + + if not is_template: + new = self.config_redirect(old, new) + new = self._override(new) + + return new FULL_CONFIG_IMPORT = ''' # This file was automatically generated by module/config/config_updater.py.