1
0
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:
LmeSzinc
2023-01-18 17:23:13 +08:00
parent 9cd81ab1ae
commit b81a7849a2
11 changed files with 592 additions and 34 deletions

View File

@@ -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)