mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 03:58:22 +08:00
Add: 增加处理光墙(海域格子间的分隔)
- 优化寻路初始化 - 修复海图log显示单字符显示'E'
This commit is contained in:
@@ -86,7 +86,8 @@ class GridInfo:
|
||||
return ''.join([text[0] for text in self.enemy_genre.split('_')]).upper() if self.enemy_genre else 'SU'
|
||||
|
||||
if self.is_enemy:
|
||||
return '%s%s' % (self.enemy_scale, self.enemy_genre[0].upper()) if self.enemy_genre else '0E'
|
||||
return '%s%s' % (self.enemy_scale, self.enemy_genre[0].upper()) \
|
||||
if self.enemy_genre and self.enemy_scale else '0E'
|
||||
|
||||
dic = {
|
||||
'FL': 'is_current_fleet',
|
||||
@@ -105,6 +106,11 @@ class GridInfo:
|
||||
def __str__(self):
|
||||
return location2node(self.location)
|
||||
|
||||
__repr__ = __str__
|
||||
|
||||
def __hash__(self):
|
||||
return hash(self.location)
|
||||
|
||||
@property
|
||||
def str(self):
|
||||
return self.encode()
|
||||
|
||||
Reference in New Issue
Block a user