1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 02:48:23 +08:00
This commit is contained in:
2025-02-28 10:41:03 +08:00
47 changed files with 369 additions and 338 deletions

View File

@@ -349,8 +349,23 @@ class FastForwardHandler(AutoSearchHandler):
str: Name of next stage in upper case,
or origin name if unable to increase.
"""
# Copy STAGE_INCREASE to avoid potential duplicate inserting
stage_increase = [r for r in self.STAGE_INCREASE]
# Insert custom increase logic
if self.config.STAGE_INCREASE_AB:
stage_increase = [
'A1 > A2 > A3 > B1 > B2 > B3',
'C1 > C2 > C3 > D1 > D2 > D3',
] + stage_increase
custom = self.config.STAGE_INCREASE_CUSTOM
if custom:
if isinstance(custom, str):
custom = [custom]
stage_increase = custom + stage_increase
# Increase stage
name = to_map_input_name(name)
for increase in self.STAGE_INCREASE:
for increase in stage_increase:
increase = [i.strip(' \t\r\n') for i in increase.split('>')]
if name in increase:
index = increase.index(name) + 1