mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-23 16:45:56 +08:00
Add: [MAA] Weekly stage fight scheduling (#2125)
This commit is contained in:
@@ -55,6 +55,15 @@ class ConfigGenerator(config_updater.ConfigGenerator):
|
||||
group, key = path
|
||||
deep_load(keys=['Gui', group], words=(key,))
|
||||
|
||||
# Copy stage names from MaaFight to MaaFightWeekly
|
||||
day_names = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']
|
||||
for stage, trans in deep_get(new, keys='MaaFight.Stage', default={}).items():
|
||||
if '-' not in stage:
|
||||
continue
|
||||
for day in day_names:
|
||||
if deep_get(new, keys=['MaaFightWeekly', day, stage]):
|
||||
deep_set(new, keys=['MaaFightWeekly', day, stage], value=trans)
|
||||
|
||||
write_file(filepath_i18n(lang), new)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user