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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user