Support nearest resurrection route selection

This commit is contained in:
王鹏
2026-04-29 21:50:33 +08:00
parent e0ca04b52f
commit 12ce30d2df
3 changed files with 154 additions and 48 deletions

View File

@@ -247,6 +247,8 @@ class AutoBotMove:
eat_max_wait_sec=None,
stop_check=None,
resurrection_waypoints_path=None,
resurrection_route_a_path=None,
resurrection_route_b_path=None,
release_spirit_key=None,
resurrect_key=None,
enable_mouse_loot=True,
@@ -297,7 +299,10 @@ class AutoBotMove:
enable_mount=bool(layout.get("enable_mount", True)),
)
self.death_manager = DeathManager(
self.patrol_controller, resurrection_waypoints_path,
self.patrol_controller,
resurrection_waypoints_path=resurrection_waypoints_path,
resurrection_route_a_path=resurrection_route_a_path,
resurrection_route_b_path=resurrection_route_b_path,
release_spirit_key=layout.get('release_spirit_key', '9') if release_spirit_key is None else release_spirit_key,
resurrect_key=layout.get('resurrect_key', '0') if resurrect_key is None else resurrect_key,
)