mirror of
https://github.com/sui-feng-cb/AzurLaneAutoScript1.git
synced 2026-07-07 13:38:30 +08:00
Refactor: separate submarine_mode for clearer semantics
This commit is contained in:
@@ -306,7 +306,7 @@ class FastForwardHandler(AutoSearchHandler):
|
||||
|
||||
@property
|
||||
def is_call_submarine_at_boss(self):
|
||||
return self.config.SUBMARINE and self.config.Submarine_Mode in ['boss_only', 'hunt_and_boss']
|
||||
return self.config.SUBMARINE and self.config.Submarine_CallMode == 'boss_only'
|
||||
|
||||
def handle_auto_submarine_call_disable(self):
|
||||
"""
|
||||
|
||||
@@ -113,7 +113,7 @@ class StrategyHandler(InfoHandler):
|
||||
self.strategy_set_execute(
|
||||
formation=expected_formation,
|
||||
sub_view=False,
|
||||
sub_hunt=bool(self.config.Submarine_Fleet) and self.config.Submarine_Mode in ['hunt_only', 'hunt_and_boss']
|
||||
sub_hunt=bool(self.config.Submarine_Fleet) and self.config.Submarine_HuntMode == 'hunt'
|
||||
)
|
||||
self.strategy_close()
|
||||
self.__setattr__(f'fleet_{index}_formation_fixed', True)
|
||||
|
||||
Reference in New Issue
Block a user