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

Add: Predict missing movable enemy

- Fix enemy detection lost in full_scan(mode='movable')
- Move basic functions to utils
This commit is contained in:
LmeSzinc
2020-08-08 14:49:50 +08:00
parent 740e76c4fd
commit 7e164528a8
5 changed files with 213 additions and 52 deletions

View File

@@ -94,6 +94,16 @@ class SelectedGrids:
"""
return SelectedGrids(list(set(self.grids + grids.grids)))
def intersect(self, grids):
"""
Args:
grids(SelectedGrids):
Returns:
SelectedGrids:
"""
return SelectedGrids(list(set(self.grids).intersection(set(grids.grids))))
def delete(self, grids):
"""
Args: