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

Fix: Enemy detection

- Log shows 'E' and wrong prediction is_siren, because attributes are kept to the next detection
- Fix missing predict also
- Fix log show DEFAULT_BUTTON for the entrance of campaign
This commit is contained in:
LmeSzinc
2020-05-31 02:49:06 +08:00
parent 589419ea91
commit 83508b94d3
4 changed files with 20 additions and 17 deletions

View File

@@ -408,14 +408,7 @@ class CampaignMap:
missing[attr] -= 1
for grid in self:
if not grid.is_fleet and not grid.is_mystery and not grid.is_siren:
continue
cover = [(0, -1)]
if grid.is_current_fleet:
cover.append((0, -2))
for upper in cover:
for upper in grid.covered_grid():
upper = tuple(np.array(grid.location) + upper)
if upper in self:
upper = self[upper]
@@ -451,14 +444,7 @@ class CampaignMap:
# predict
for grid in self:
if not grid.is_fleet and not grid.is_mystery:
continue
cover = [(0, -1)]
if grid.is_current_fleet:
cover.append((0, -2))
for upper in cover:
for upper in grid.covered_grid():
upper = tuple(np.array(grid.location) + upper)
if upper in self:
upper = self[upper]