1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 00:28:20 +08:00

Fix: Full scan wasn't early stopped cuz mixed use of siren and boss

This commit is contained in:
LmeSzinc
2024-04-26 13:37:25 +08:00
parent b07d266e49
commit cba28a8aac
4 changed files with 24 additions and 7 deletions

View File

@@ -10,6 +10,7 @@ from module.map_detection.grid_info import GridInfo
class CampaignMap:
def __init__(self, name=None):
self.name = name
self.grid_class = GridInfo
self.grids = {}
self._shape = (0, 0)
self._map_data = ''
@@ -68,7 +69,7 @@ class CampaignMap:
self._shape = node2location(scale.upper())
for y in range(self._shape[1] + 1):
for x in range(self._shape[0] + 1):
grid = GridInfo()
grid = self.grid_class()
grid.location = (x, y)
self.grids[(x, y)] = grid