1
0
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:
LmeSzinc
2021-09-17 18:22:24 +08:00
parent e0063325b2
commit 017df17029
18 changed files with 152 additions and 35 deletions

View File

@@ -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