mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 03:58:22 +08:00
Add: Attack abyssal boss
This commit is contained in:
@@ -126,14 +126,23 @@ class FastForwardHandler(AutoSearchHandler):
|
||||
changed = fast_forward.set(status=status, main=self)
|
||||
return changed
|
||||
|
||||
def handle_map_fleet_lock(self):
|
||||
def handle_map_fleet_lock(self, enable=None):
|
||||
"""
|
||||
Args:
|
||||
enable (bool): Default to None, use Campaign_UseFleetLock.
|
||||
|
||||
Returns:
|
||||
bool: If switched.
|
||||
"""
|
||||
# Fleet lock depends on if it appear on map, not depends on map status.
|
||||
# Because if already in map, there's no map status,
|
||||
if not fleet_lock.appear(main=self):
|
||||
logger.info('No fleet lock option.')
|
||||
return False
|
||||
|
||||
status = 'on' if self.config.Campaign_UseFleetLock else 'off'
|
||||
if enable is None:
|
||||
enable = self.config.Campaign_UseFleetLock
|
||||
status = 'on' if enable else 'off'
|
||||
changed = fleet_lock.set(status=status, main=self)
|
||||
|
||||
return changed
|
||||
|
||||
Reference in New Issue
Block a user