1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 13:29:25 +08:00

add: skip air strike animation

This commit is contained in:
0O0o0oOoO00
2026-01-12 22:24:53 +08:00
parent ee73e57e15
commit aa12aa8511
16 changed files with 107 additions and 1 deletions

View File

@@ -404,6 +404,12 @@ class CrackApi:
def disable_infinite_battle(self):
self.post("disable_infinite_battle")
def enable_skip_air_strike_animation(self):
self.post("enable_skip_air_strike_animation")
def disable_skip_air_strike_animation(self):
self.post("disable_skip_air_strike_animation")
def init(self):
self.post("init")

View File

@@ -46,6 +46,7 @@ ALL_ENABLE_OPS = [
CrackOp.EnableChapterAutoClear,
CrackOp.EnableSkipStory,
CrackOp.EnableInfiniteBattle,
CrackOp.EnableSkipAirStrikeAnimation,
]
REMOTE_PORT = 23897
@@ -337,6 +338,11 @@ def do_crack_op(config: AzurLaneConfig, device: Device, ops: Union[Type[CrackOp.
api.enable_infinite_battle()
elif op == CrackOp.DisableInfiniteBattle:
api.disable_infinite_battle()
elif op == CrackOp.EnableSkipAirStrikeAnimation:
if full_config.Hook_Misc_SkipAirStrikeAnimation:
api.enable_skip_air_strike_animation()
elif op == CrackOp.DisableSkipAirStrikeAnimation:
api.disable_skip_air_strike_animation()
else:
logger.error(f"Unsupported op: {op}")
@@ -396,6 +402,7 @@ CHAPTER_CRACK_OPS = [
CrackOp.EnableChapterAutoClear,
CrackOp.EnableSkipStory,
CrackOp.EnableInfiniteBattle,
CrackOp.EnableSkipAirStrikeAnimation,
]

View File

@@ -184,3 +184,9 @@ class CrackOp:
class DisableInfiniteBattle(Op):
...
class EnableSkipAirStrikeAnimation(Op):
...
class DisableSkipAirStrikeAnimation(Op):
...