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