1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 23:18:22 +08:00

Fix: wrong and/or usage;fix wrong function;improve translation

This commit is contained in:
bookbug666
2022-11-29 15:06:37 +08:00
parent db4e30293e
commit f3297889a4
6 changed files with 7 additions and 7 deletions

View File

@@ -224,7 +224,7 @@ class FastForwardHandler(AutoSearchHandler):
@property
def is_call_submarine_at_boss(self):
return self.config.SUBMARINE and self.config.Submarine_Mode == 'boss_only' or self.config.Submarine_Mode == 'hunt_and_boss '
return self.config.SUBMARINE and self.config.Submarine_Mode in ['boss_only', 'hunt_and_boss']
def handle_auto_submarine_call_disable(self):
"""

View File

@@ -95,7 +95,7 @@ class StrategyHandler(InfoHandler):
self.strategy_set_execute(
formation_index=expected_formation,
sub_view=False,
sub_hunt=bool(self.config.Submarine_Fleet) and self.config.Submarine_Mode == 'hunt_only' or self.config.Submarine_Mode == 'hunt_and_boss'
sub_hunt=bool(self.config.Submarine_Fleet) and self.config.Submarine_Mode in ['boss_only', 'hunt_and_boss']
)
self.strategy_close()
self.__setattr__(f'fleet_{index}_formation_fixed', True)