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

Add: Attack abyssal boss

This commit is contained in:
LmeSzinc
2021-12-06 20:56:57 +08:00
parent 1290224c50
commit caf51858e9
11 changed files with 347 additions and 74 deletions

View File

@@ -12,7 +12,7 @@ def location_ensure(location):
Returns:
tuple(int): Location, such as (4, 3)
"""
if isinstance(location, GridInfo):
if hasattr(location, 'location'):
return location.location
elif isinstance(location, str):
return node2location(location)