mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 22:08:20 +08:00
Fix: GridInfo properties
- Delete old grid files, avoid confused again
This commit is contained in:
@@ -52,6 +52,8 @@ class GridInfo:
|
||||
is_carrier = False
|
||||
is_movable = False
|
||||
cost = 9999
|
||||
cost_1 = 9999
|
||||
cost_2 = 9999
|
||||
connection = None
|
||||
weight = 1
|
||||
|
||||
@@ -133,6 +135,14 @@ class GridInfo:
|
||||
def is_accessible(self):
|
||||
return self.cost < 9999
|
||||
|
||||
@property
|
||||
def is_accessible_1(self):
|
||||
return self.cost_1 < 9999
|
||||
|
||||
@property
|
||||
def is_accessible_2(self):
|
||||
return self.cost_2 < 9999
|
||||
|
||||
@property
|
||||
def is_nearby(self):
|
||||
return self.cost < 20
|
||||
|
||||
Reference in New Issue
Block a user