mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 20:58:19 +08:00
Fix: 修复有行走步长时可能点到另一支队伍的问题
- 微调了复刻苍红的回响D图的透视识别参数
This commit is contained in:
@@ -214,6 +214,10 @@ class Fleet(Camera, MapOperation, AmbushHandler):
|
||||
self._goto(location, expected=expected)
|
||||
|
||||
def find_path_initial(self):
|
||||
if self.fleet_1_location:
|
||||
self.map[self.fleet_1_location].is_fleet = True
|
||||
if self.fleet_2_location:
|
||||
self.map[self.fleet_2_location].is_fleet = True
|
||||
self.map.find_path_initial(self.fleet_current, has_ambush=self.config.MAP_HAS_AMBUSH)
|
||||
|
||||
def show_fleet(self):
|
||||
|
||||
@@ -296,6 +296,7 @@ class CampaignMap:
|
||||
if not self[route[index]].is_fleet:
|
||||
res.append(index)
|
||||
else:
|
||||
logger.info(f'Path_node_avoid: {self[route[index]]}')
|
||||
if (index > 1) and (index - 1 not in indexes):
|
||||
res.append(index - 1)
|
||||
if (index < len(route) - 2) and (index + 1 not in indexes):
|
||||
@@ -312,6 +313,7 @@ class CampaignMap:
|
||||
if not self[route[index]].is_fleet:
|
||||
inserted.append(index)
|
||||
else:
|
||||
logger.info(f'Path_node_avoid: {self[route[index]]}')
|
||||
if (index > 1) and (index - 1 not in res):
|
||||
inserted.append(index - 1)
|
||||
if (index < len(route) - 2) and (index + 1 not in res):
|
||||
|
||||
Reference in New Issue
Block a user