mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 13:29:25 +08:00
add: auto once again
This commit is contained in:
@@ -410,6 +410,12 @@ class CrackApi:
|
||||
def disable_skip_air_strike_animation(self):
|
||||
self.post("disable_skip_air_strike_animation")
|
||||
|
||||
def enable_auto_once_again(self):
|
||||
self.post("enable_auto_once_again")
|
||||
|
||||
def disable_auto_once_again(self):
|
||||
self.post("disable_auto_once_again")
|
||||
|
||||
def init(self):
|
||||
self.post("init")
|
||||
|
||||
|
||||
@@ -47,6 +47,7 @@ ALL_ENABLE_OPS = [
|
||||
CrackOp.EnableSkipStory,
|
||||
CrackOp.EnableInfiniteBattle,
|
||||
CrackOp.EnableSkipAirStrikeAnimation,
|
||||
CrackOp.EnableAutoOnceAgain,
|
||||
]
|
||||
|
||||
REMOTE_PORT = 23897
|
||||
@@ -343,6 +344,11 @@ def do_crack_op(config: AzurLaneConfig, device: Device, ops: Union[Type[CrackOp.
|
||||
api.enable_skip_air_strike_animation()
|
||||
elif op == CrackOp.DisableSkipAirStrikeAnimation:
|
||||
api.disable_skip_air_strike_animation()
|
||||
elif op == CrackOp.EnableAutoOnceAgain:
|
||||
if full_config.Hook_Misc_AutoOnceAgain:
|
||||
api.enable_auto_once_again()
|
||||
elif op == CrackOp.DisableAutoOnceAgain:
|
||||
api.disable_auto_once_again()
|
||||
else:
|
||||
logger.error(f"Unsupported op: {op}")
|
||||
|
||||
@@ -403,6 +409,7 @@ CHAPTER_CRACK_OPS = [
|
||||
CrackOp.EnableSkipStory,
|
||||
CrackOp.EnableInfiniteBattle,
|
||||
CrackOp.EnableSkipAirStrikeAnimation,
|
||||
CrackOp.EnableAutoOnceAgain,
|
||||
]
|
||||
|
||||
|
||||
|
||||
@@ -190,3 +190,9 @@ class CrackOp:
|
||||
|
||||
class DisableSkipAirStrikeAnimation(Op):
|
||||
...
|
||||
|
||||
class EnableAutoOnceAgain(Op):
|
||||
...
|
||||
|
||||
class DisableAutoOnceAgain(Op):
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user