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

Add: Do random map events in OpSi

- Opt: Select the second story option from the bottom in OpSi
- Fix: ui_mask_homo_stroke in OpSi
- Dev: Fix relative_crop.py
This commit is contained in:
LmeSzinc
2022-05-14 23:56:42 +08:00
parent acec98e435
commit 9f2df3c2c5
22 changed files with 318 additions and 50 deletions

View File

@@ -322,3 +322,15 @@ class GridInfo:
return [(0, -1)]
return []
def distance_to(self, other):
"""
Args:
other (GridInfo):
Returns:
int: Manhattan distance
"""
l1 = self.location
l2 = other.location
return abs(l1[0] - l2[0]) + abs(l1[1] - l2[1])