mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
Logs and rpg status for new rpg strats
This commit is contained in:
@@ -2661,15 +2661,17 @@ void RandomPlayerbotMgr::PrintStats()
|
|||||||
LOG_INFO("playerbots", " In BG: {}", inBg);
|
LOG_INFO("playerbots", " In BG: {}", inBg);
|
||||||
LOG_INFO("playerbots", " In Rest: {}", rest);
|
LOG_INFO("playerbots", " In Rest: {}", rest);
|
||||||
LOG_INFO("playerbots", " Dead: {}", dead);
|
LOG_INFO("playerbots", " Dead: {}", dead);
|
||||||
|
if (sPlayerbotAIConfig->enableNewRpgStrategy)
|
||||||
LOG_INFO("playerbots", "Bots rpg status:", dead);
|
{
|
||||||
LOG_INFO("playerbots", " IDLE: {}", rpgStatusCount[NewRpgStatus::IDLE]);
|
LOG_INFO("playerbots", "Bots rpg status:", dead);
|
||||||
LOG_INFO("playerbots", " REST: {}", rpgStatusCount[NewRpgStatus::REST]);
|
LOG_INFO("playerbots", " IDLE: {}", rpgStatusCount[NewRpgStatus::IDLE]);
|
||||||
LOG_INFO("playerbots", " GO_GRIND: {}", rpgStatusCount[NewRpgStatus::GO_GRIND]);
|
LOG_INFO("playerbots", " REST: {}", rpgStatusCount[NewRpgStatus::REST]);
|
||||||
LOG_INFO("playerbots", " GO_INNKEEPER: {}", rpgStatusCount[NewRpgStatus::GO_INNKEEPER]);
|
LOG_INFO("playerbots", " GO_GRIND: {}", rpgStatusCount[NewRpgStatus::GO_GRIND]);
|
||||||
LOG_INFO("playerbots", " NEAR_RANDOM: {}", rpgStatusCount[NewRpgStatus::NEAR_RANDOM]);
|
LOG_INFO("playerbots", " GO_INNKEEPER: {}", rpgStatusCount[NewRpgStatus::GO_INNKEEPER]);
|
||||||
LOG_INFO("playerbots", " NEAR_NPC: {}", rpgStatusCount[NewRpgStatus::NEAR_NPC]);
|
LOG_INFO("playerbots", " NEAR_RANDOM: {}", rpgStatusCount[NewRpgStatus::NEAR_RANDOM]);
|
||||||
|
LOG_INFO("playerbots", " NEAR_NPC: {}", rpgStatusCount[NewRpgStatus::NEAR_NPC]);
|
||||||
|
}
|
||||||
|
|
||||||
LOG_INFO("playerbots", "Bots engine:", dead);
|
LOG_INFO("playerbots", "Bots engine:", dead);
|
||||||
LOG_INFO("playerbots", " Non-combat: {}", engine_noncombat);
|
LOG_INFO("playerbots", " Non-combat: {}", engine_noncombat);
|
||||||
LOG_INFO("playerbots", " Combat: {}", engine_combat);
|
LOG_INFO("playerbots", " Combat: {}", engine_combat);
|
||||||
|
|||||||
@@ -52,27 +52,34 @@ struct NewRpgInfo
|
|||||||
{
|
{
|
||||||
case NewRpgStatus::GO_GRIND:
|
case NewRpgStatus::GO_GRIND:
|
||||||
out << "GO_GRIND";
|
out << "GO_GRIND";
|
||||||
|
out << "\nGrindPos: " << grindPos.GetMapId() << " " << grindPos.GetPositionX() << " " << grindPos.GetPositionY() << " " << grindPos.GetPositionZ();
|
||||||
|
out << "\nlastGoGrind: " << lastGoGrind;
|
||||||
break;
|
break;
|
||||||
case NewRpgStatus::GO_INNKEEPER:
|
case NewRpgStatus::GO_INNKEEPER:
|
||||||
out << "GO_INNKEEPER";
|
out << "GO_INNKEEPER";
|
||||||
|
out << "\nInnKeeperPos: " << innKeeperPos.GetMapId() << " " << innKeeperPos.GetPositionX() << " " << innKeeperPos.GetPositionY() << " " << innKeeperPos.GetPositionZ();
|
||||||
|
out << "\nlastGoInnKeeper: " << lastGoInnKeeper;
|
||||||
break;
|
break;
|
||||||
case NewRpgStatus::NEAR_NPC:
|
case NewRpgStatus::NEAR_NPC:
|
||||||
out << "NEAR_NPC";
|
out << "NEAR_NPC";
|
||||||
|
out << "\nNpcPos: " << npcPos.GetMapId() << " " << npcPos.GetPositionX() << " " << npcPos.GetPositionY() << " " << npcPos.GetPositionZ();
|
||||||
|
out << "\nlastNearNpc: " << lastNearNpc;
|
||||||
|
out << "\nlastReachNpc: " << lastReachNpc;
|
||||||
break;
|
break;
|
||||||
case NewRpgStatus::NEAR_RANDOM:
|
case NewRpgStatus::NEAR_RANDOM:
|
||||||
out << "NEAR_RANDOM";
|
out << "NEAR_RANDOM";
|
||||||
|
out << "\nlastNearNpc: " << lastNearRandom;
|
||||||
break;
|
break;
|
||||||
case NewRpgStatus::IDLE:
|
case NewRpgStatus::IDLE:
|
||||||
out << "IDLE";
|
out << "IDLE";
|
||||||
break;
|
break;
|
||||||
case NewRpgStatus::REST:
|
case NewRpgStatus::REST:
|
||||||
out << "REST";
|
out << "REST";
|
||||||
|
out << "\nlastNearNpc: " << lastRest;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
out << "UNKNOWN";
|
out << "UNKNOWN";
|
||||||
}
|
}
|
||||||
out << "\nGrindPos: " << grindPos.GetMapId() << " " << grindPos.GetPositionX() << " " << grindPos.GetPositionY() << " " << grindPos.GetPositionZ();
|
|
||||||
out << "\nlastGoGrind: " << lastGoGrind;
|
|
||||||
return out.str();
|
return out.str();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user