mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-06-20 15:39:25 +02:00
chore: Drop bot movement console logs
This commit is contained in:
parent
6754a95890
commit
85e2a940a1
@ -3284,15 +3284,6 @@ bool MovementAction::GetTravelPlan(TravelPlan& plan, WorldPosition destination)
|
||||
{
|
||||
WorldPosition botPos(bot->GetMapId(), bot->GetPositionX(),
|
||||
bot->GetPositionY(), bot->GetPositionZ());
|
||||
|
||||
LOG_DEBUG("playerbots",
|
||||
"[TravelPlan] {} requesting plan: from ({:.0f},{:.0f},{:.0f}) map={} zone={} → "
|
||||
"({:.0f},{:.0f},{:.0f}) map={} (straight={:.0f}yd)",
|
||||
bot->GetName(), botPos.GetPositionX(), botPos.GetPositionY(), botPos.GetPositionZ(),
|
||||
bot->GetMapId(), bot->GetZoneId(),
|
||||
destination.GetPositionX(), destination.GetPositionY(), destination.GetPositionZ(),
|
||||
destination.GetMapId(), botPos.fDist(destination));
|
||||
|
||||
return sTravelNodeMap.GetFullPath(plan, botPos, bot->GetZoneId(), destination, bot);
|
||||
}
|
||||
|
||||
@ -3616,8 +3607,7 @@ bool MovementAction::ExecuteTravelPlan(TravelPlan& state)
|
||||
if (bot->IsMounted())
|
||||
bot->Dismount();
|
||||
|
||||
if (bot->ActivateTaxiPathTo(state.route, flightMaster, 0))
|
||||
LOG_DEBUG("playerbots","[TravelPlan] Bot {} taking flight ({} nodes)", bot->GetName(), state.route.size());
|
||||
bot->ActivateTaxiPathTo(state.route, flightMaster, 0);
|
||||
|
||||
state.route.clear();
|
||||
state.stepIdx += 2;
|
||||
|
||||
@ -162,8 +162,6 @@ bool NewRpgBaseAction::MoveFarTo(WorldPosition dest)
|
||||
StartTravelPlan(dest);
|
||||
if (botAI->rpgInfo.HasActiveTravelPlan())
|
||||
{
|
||||
LOG_INFO("playerbots", "[MoveFar] {} nodetravel | dis={:.0f}",
|
||||
bot->GetName(), dis);
|
||||
EmitDebugMove("MoveFar", "travelplan",
|
||||
dest.GetPositionX(), dest.GetPositionY(), dest.GetPositionZ());
|
||||
return UpdateTravelPlan();
|
||||
@ -230,9 +228,6 @@ bool NewRpgBaseAction::MoveFarTo(WorldPosition dest)
|
||||
|
||||
if (points.size() >= 2)
|
||||
{
|
||||
LOG_INFO("playerbots", "[MoveFar] {} mmap-path | dis={:.0f} | endDist={:.0f} | wp={}",
|
||||
bot->GetName(), dis, endDistToDest, (uint32)points.size());
|
||||
|
||||
// Mount up if outdoors and not in combat.
|
||||
if (!bot->IsMounted() && !bot->IsInCombat() && bot->IsOutdoors() && bot->IsAlive())
|
||||
botAI->DoSpecificAction("check mount state", Event(), true);
|
||||
@ -437,9 +432,6 @@ void NewRpgBaseAction::StartTravelPlan(WorldPosition dest)
|
||||
{
|
||||
TravelPlan& plan = botAI->rpgInfo.travelPlan;
|
||||
GetTravelPlan(plan, dest);
|
||||
|
||||
LOG_DEBUG("playerbots","[New RPG] Bot {} starting travel plan to ({:.0f},{:.0f},{:.0f}) map={}, {} points",
|
||||
bot->GetName(), dest.GetPositionX(), dest.GetPositionY(), dest.GetPositionZ(), dest.GetMapId(), plan.steps.size());
|
||||
}
|
||||
|
||||
bool NewRpgBaseAction::UpdateTravelPlan()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user