mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
[Log] Downgrade duplicate log
This commit is contained in:
@@ -1196,8 +1196,8 @@ void RandomPlayerbotMgr::RandomTeleport(Player* bot, std::vector<WorldLocation>&
|
|||||||
|
|
||||||
z = 0.05f + ground;
|
z = 0.05f + ground;
|
||||||
|
|
||||||
LOG_INFO("playerbots", "Random teleporting bot {} to {} {},{},{} ({}/{} locations)",
|
LOG_INFO("playerbots", "Random teleporting bot (level {}) {} to {} {},{},{} ({}/{} locations)",
|
||||||
bot->GetName().c_str(), zone->area_name[0], x, y, z, attemtps, tlocs.size());
|
bot->GetLevel(), bot->GetName().c_str(), zone->area_name[0], x, y, z, attemtps, tlocs.size());
|
||||||
|
|
||||||
if (hearth)
|
if (hearth)
|
||||||
{
|
{
|
||||||
@@ -1387,7 +1387,7 @@ void RandomPlayerbotMgr::RandomTeleportForLevel(Player* bot)
|
|||||||
|
|
||||||
uint32 level = bot->getLevel();
|
uint32 level = bot->getLevel();
|
||||||
uint8 race = bot->getRace();
|
uint8 race = bot->getRace();
|
||||||
LOG_INFO("playerbots", "Random teleporting bot {} for level {} ({} locations available)", bot->GetName().c_str(), bot->GetLevel(), locsPerLevelCache[level].size());
|
LOG_DEBUG("playerbots", "Random teleporting bot {} for level {} ({} locations available)", bot->GetName().c_str(), bot->GetLevel(), locsPerLevelCache[level].size());
|
||||||
if (urand(0, 100) < sPlayerbotAIConfig->probTeleToBankers * 100) {
|
if (urand(0, 100) < sPlayerbotAIConfig->probTeleToBankers * 100) {
|
||||||
RandomTeleport(bot, bankerLocsPerLevelCache[level], true);
|
RandomTeleport(bot, bankerLocsPerLevelCache[level], true);
|
||||||
} else {
|
} else {
|
||||||
@@ -1402,7 +1402,7 @@ void RandomPlayerbotMgr::RandomTeleportGrindForLevel(Player* bot)
|
|||||||
|
|
||||||
uint32 level = bot->getLevel();
|
uint32 level = bot->getLevel();
|
||||||
uint8 race = bot->getRace();
|
uint8 race = bot->getRace();
|
||||||
LOG_INFO("playerbots", "Random teleporting bot {} for level {} ({} locations available)", bot->GetName().c_str(), bot->GetLevel(), locsPerLevelCache[level].size());
|
LOG_DEBUG("playerbots", "Random teleporting bot {} for level {} ({} locations available)", bot->GetName().c_str(), bot->GetLevel(), locsPerLevelCache[level].size());
|
||||||
|
|
||||||
RandomTeleport(bot, locsPerLevelCache[level]);
|
RandomTeleport(bot, locsPerLevelCache[level]);
|
||||||
}
|
}
|
||||||
@@ -1642,7 +1642,7 @@ void RandomPlayerbotMgr::Refresh(Player* bot)
|
|||||||
if (bot->InBattleground())
|
if (bot->InBattleground())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
LOG_INFO("playerbots", "Refreshing bot {} <{}>", bot->GetGUID().ToString().c_str(), bot->GetName().c_str());
|
LOG_DEBUG("playerbots", "Refreshing bot {} <{}>", bot->GetGUID().ToString().c_str(), bot->GetName().c_str());
|
||||||
|
|
||||||
PerformanceMonitorOperation* pmo = sPerformanceMonitor->start(PERF_MON_RNDBOT, "Refresh");
|
PerformanceMonitorOperation* pmo = sPerformanceMonitor->start(PERF_MON_RNDBOT, "Refresh");
|
||||||
|
|
||||||
@@ -2482,7 +2482,7 @@ void RandomPlayerbotMgr::RandomTeleportForRpg(Player* bot)
|
|||||||
{
|
{
|
||||||
uint32 race = bot->getRace();
|
uint32 race = bot->getRace();
|
||||||
uint32 level = bot->GetLevel();
|
uint32 level = bot->GetLevel();
|
||||||
LOG_INFO("playerbots", "Random teleporting bot {} for RPG ({} locations available)", bot->GetName().c_str(), rpgLocsCacheLevel[race].size());
|
LOG_DEBUG("playerbots", "Random teleporting bot {} for RPG ({} locations available)", bot->GetName().c_str(), rpgLocsCacheLevel[race].size());
|
||||||
RandomTeleport(bot, rpgLocsCacheLevel[race][level], true);
|
RandomTeleport(bot, rpgLocsCacheLevel[race][level], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -300,7 +300,7 @@ bool SpiritHealerAction::Execute(Event event)
|
|||||||
Unit* unit = botAI->GetUnit(*i);
|
Unit* unit = botAI->GetUnit(*i);
|
||||||
if (unit && unit->HasFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPIRITHEALER))
|
if (unit && unit->HasFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPIRITHEALER))
|
||||||
{
|
{
|
||||||
LOG_INFO("playerbots", "Bot {} {}:{} <{}> revives at spirit healer",
|
LOG_DEBUG("playerbots", "Bot {} {}:{} <{}> revives at spirit healer",
|
||||||
bot->GetGUID().ToString().c_str(), bot->GetTeamId() == TEAM_ALLIANCE ? "A" : "H", bot->getLevel(), bot->GetName());
|
bot->GetGUID().ToString().c_str(), bot->GetTeamId() == TEAM_ALLIANCE ? "A" : "H", bot->getLevel(), bot->GetName());
|
||||||
PlayerbotChatHandler ch(bot);
|
PlayerbotChatHandler ch(bot);
|
||||||
bot->ResurrectPlayer(0.5f);
|
bot->ResurrectPlayer(0.5f);
|
||||||
|
|||||||
Reference in New Issue
Block a user