Update patrol routing settings
This commit is contained in:
@@ -262,6 +262,7 @@ class AutoBotMove:
|
||||
skip_prepare_route=False,
|
||||
patrol_route_switch_laps=0,
|
||||
patrol_point_offset_radius=0.15,
|
||||
random_patrol_direction=False,
|
||||
):
|
||||
self.last_tab_time = 0
|
||||
self.last_interaction_time = 0 # 记录上一次按互动键的时间
|
||||
@@ -293,6 +294,7 @@ class AutoBotMove:
|
||||
self._last_mouse_path_scale_signature = None
|
||||
self.logistics_resume_cooldown_until = 0.0
|
||||
self.skip_prepare_route = bool(skip_prepare_route)
|
||||
self.random_patrol_direction = bool(random_patrol_direction)
|
||||
try:
|
||||
self.patrol_route_switch_laps = max(0, int(patrol_route_switch_laps or 0))
|
||||
except (TypeError, ValueError):
|
||||
@@ -414,7 +416,9 @@ class AutoBotMove:
|
||||
self.current_patrol_route_name = str(route.get("name") or "未命名巡逻路线")
|
||||
self.current_patrol_route_index = route_index
|
||||
self.current_patrol_route_laps = 0
|
||||
reverse_route = random.choice((False, True))
|
||||
reverse_route = (
|
||||
random.choice((False, True)) if self.random_patrol_direction else False
|
||||
)
|
||||
direction_name = "逆向" if reverse_route else "正向"
|
||||
if reverse_route:
|
||||
points = list(reversed(points))
|
||||
|
||||
Reference in New Issue
Block a user