From e892d10eaa09eb735af788dd6015b573a4a04e04 Mon Sep 17 00:00:00 2001 From: bash Date: Fri, 8 May 2026 22:27:36 +0200 Subject: [PATCH] feat(Core/Debug): Emit MoveFar:spline-active, reuse-trim-failed, MoveRandomNear:all-fail --- src/Ai/World/Rpg/Action/NewRpgBaseAction.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Ai/World/Rpg/Action/NewRpgBaseAction.cpp b/src/Ai/World/Rpg/Action/NewRpgBaseAction.cpp index 59c89551d..7943aeb98 100644 --- a/src/Ai/World/Rpg/Action/NewRpgBaseAction.cpp +++ b/src/Ai/World/Rpg/Action/NewRpgBaseAction.cpp @@ -73,7 +73,11 @@ bool NewRpgBaseAction::MoveFarTo(WorldPosition dest) { float remaining = bot->GetExactDist(lastMove.lastMoveToX, lastMove.lastMoveToY, lastMove.lastMoveToZ); if (remaining > 10.0f) + { + EmitDebugMove("MoveFar", "spline-active", + lastMove.lastMoveToX, lastMove.lastMoveToY, lastMove.lastMoveToZ); return true; + } } } @@ -101,6 +105,11 @@ bool NewRpgBaseAction::MoveFarTo(WorldPosition dest) // makeShortCut may clear the path if the bot drifted // too far off (>reactDistance from any waypoint). In // that case fall through to fresh planning. + if (lastMove.lastPath.empty()) + { + EmitDebugMove("MoveFar", "reuse-trim-failed", + dest.GetPositionX(), dest.GetPositionY(), dest.GetPositionZ()); + } if (!lastMove.lastPath.empty()) { std::vector const& pts = lastMove.lastPath.getPointPath(); @@ -386,6 +395,7 @@ bool NewRpgBaseAction::MoveRandomNear(float moveStep, MovementPriority priority, } } + EmitDebugMove("MoveRandomNear", "all-fail", x, y, z); return false; }