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

Add: Find siren stronghold in globe map

This commit is contained in:
LmeSzinc
2021-12-05 16:08:33 +08:00
parent 9653735b67
commit 699d504c9b
5 changed files with 139 additions and 9 deletions

View File

@@ -84,6 +84,18 @@ class SelectedGrids:
return SelectedGrids(result)
def filter(self, func):
"""
Filter grids by a function.
Args:
func (callable): Function should receive an grid as argument, and return a bool.
Returns:
SelectedGrids:
"""
return SelectedGrids([grid for grid in self if func(grid)])
def set(self, **kwargs):
"""
Set attribute to each grid.