mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-17 21:35:24 +08:00
Fix: Redirect coalition modes
This commit is contained in:
@@ -589,6 +589,8 @@ class ConfigUpdater:
|
|||||||
# 'GemsFarming.GemsFarming.ChangeVanguard',
|
# 'GemsFarming.GemsFarming.ChangeVanguard',
|
||||||
# change_ship_redirect),
|
# change_ship_redirect),
|
||||||
# ('Alas.DropRecord.API', 'Alas.DropRecord.API', api_redirect2)
|
# ('Alas.DropRecord.API', 'Alas.DropRecord.API', api_redirect2)
|
||||||
|
# 2025.04.17
|
||||||
|
('Coalition.Coalition.Mode', 'Coalition.Coalition.Mode', coalition_to_frostfall)
|
||||||
]
|
]
|
||||||
# redirection += [
|
# redirection += [
|
||||||
# (
|
# (
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ def emotion_mode_redirect(value):
|
|||||||
|
|
||||||
def change_ship_redirect(value):
|
def change_ship_redirect(value):
|
||||||
"""
|
"""
|
||||||
FlagshipChange + FlagshipEquipChange -> ChangeFlagship
|
FlagshipChange + FlagshipEquipChange -> ChangeFlagship
|
||||||
"""
|
"""
|
||||||
ship, equip = value
|
ship, equip = value
|
||||||
if not ship:
|
if not ship:
|
||||||
@@ -93,6 +93,7 @@ def change_ship_redirect(value):
|
|||||||
else:
|
else:
|
||||||
return 'ship'
|
return 'ship'
|
||||||
|
|
||||||
|
|
||||||
def api_redirect2(value):
|
def api_redirect2(value):
|
||||||
"""
|
"""
|
||||||
remove shanghai proxy, use guangzhou
|
remove shanghai proxy, use guangzhou
|
||||||
@@ -100,4 +101,32 @@ def api_redirect2(value):
|
|||||||
if value == 'cn_sh_reverse_proxy':
|
if value == 'cn_sh_reverse_proxy':
|
||||||
return 'cn_gz_reverse_proxy'
|
return 'cn_gz_reverse_proxy'
|
||||||
else:
|
else:
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
||||||
|
def coalition_to_frostfall(value):
|
||||||
|
"""
|
||||||
|
Redirect Little Academy stage names to Frostfall
|
||||||
|
"""
|
||||||
|
if value == 'easy':
|
||||||
|
return 'tc1'
|
||||||
|
elif value == 'normal':
|
||||||
|
return 'tc2'
|
||||||
|
elif value == 'hard':
|
||||||
|
return 'tc3'
|
||||||
|
else:
|
||||||
|
return value
|
||||||
|
|
||||||
|
|
||||||
|
def coalition_to_little_academy(value):
|
||||||
|
"""
|
||||||
|
Redirect Little Academy stage names to Frostfall
|
||||||
|
"""
|
||||||
|
if value == 'tc1':
|
||||||
|
return 'easy'
|
||||||
|
elif value == 'tc2':
|
||||||
|
return 'normal'
|
||||||
|
elif value == 'tc3':
|
||||||
|
return 'hard'
|
||||||
|
else:
|
||||||
|
return value
|
||||||
|
|||||||
Reference in New Issue
Block a user