mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-18 06:47:19 +08:00
Fix: Path finding when grids blocked by fortress
This commit is contained in:
@@ -8,15 +8,15 @@ from module.map_detection.grid import GridInfo
|
||||
class CampaignBase(CampaignBase_):
|
||||
MACHINE_FORTRESS: List[GridInfo]
|
||||
|
||||
def handle_clear_mode_config_cover(self):
|
||||
if super().handle_clear_mode_config_cover():
|
||||
logger.info(f'No machine fortress in clear mode')
|
||||
return True
|
||||
else:
|
||||
if hasattr(self, 'MACHINE_FORTRESS'):
|
||||
logger.info(f'Set machine fortress: {self.MACHINE_FORTRESS}')
|
||||
for grid in self.MACHINE_FORTRESS:
|
||||
grid.manual_siren = True
|
||||
else:
|
||||
logger.info(f'No machine fortress in this stage')
|
||||
return False
|
||||
# def handle_clear_mode_config_cover(self):
|
||||
# if super().handle_clear_mode_config_cover():
|
||||
# logger.info(f'No machine fortress in clear mode')
|
||||
# return True
|
||||
# else:
|
||||
# if hasattr(self, 'MACHINE_FORTRESS'):
|
||||
# logger.info(f'Set machine fortress: {self.MACHINE_FORTRESS}')
|
||||
# for grid in self.MACHINE_FORTRESS:
|
||||
# grid.manual_siren = True
|
||||
# else:
|
||||
# logger.info(f'No machine fortress in this stage')
|
||||
# return False
|
||||
|
||||
Reference in New Issue
Block a user