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