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