mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Verbose logging.
Should now be able to see guild count values as the server inits
This commit is contained in:
parent
444be2994e
commit
24f841f728
@ -902,6 +902,18 @@ void RandomPlayerbotFactory::CreateRandomGuilds()
|
|||||||
} while (guildTableResults->NextRow());
|
} while (guildTableResults->NextRow());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Is it worth continuing?
|
||||||
|
LOG_INFO("playerbots", "{}/{} random bot guilds exist in guild table)", guildNumber, sPlayerbotAIConfig->randomBotGuildCount);
|
||||||
|
if (guildNumber >= sPlayerbotAIConfig->randomBotGuildCount)
|
||||||
|
{
|
||||||
|
LOG_INFO("playerbots", "No new random guilds required");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
LOG_INFO("playerbots", "Creating {} new random guilds...", sPlayerbotAIConfig->randomBotGuildCount - guildNumber);
|
||||||
|
}
|
||||||
|
|
||||||
// Get a list of bots that are logged in and available to lead new guilds
|
// Get a list of bots that are logged in and available to lead new guilds
|
||||||
GuidVector availableLeaders;
|
GuidVector availableLeaders;
|
||||||
for (std::vector<uint32>::iterator i = randomBots.begin(); i != randomBots.end(); ++i)
|
for (std::vector<uint32>::iterator i = randomBots.begin(); i != randomBots.end(); ++i)
|
||||||
@ -918,7 +930,7 @@ void RandomPlayerbotFactory::CreateRandomGuilds()
|
|||||||
availableLeaders.push_back(leader);
|
availableLeaders.push_back(leader);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LOG_INFO("playerbots", "randomBotGuilds - {} available leaders for new guilds found", availableLeaders.size());
|
LOG_INFO("playerbots", "{} available leaders for new guilds found", availableLeaders.size());
|
||||||
|
|
||||||
// Create up to randomBotGuildCount by counting only EFFECTIVE creations
|
// Create up to randomBotGuildCount by counting only EFFECTIVE creations
|
||||||
uint32 createdThisRun = 0;
|
uint32 createdThisRun = 0;
|
||||||
@ -1008,8 +1020,7 @@ void RandomPlayerbotFactory::CreateRandomGuilds()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Shows the true total and how many were created during this run
|
// Shows the true total and how many were created during this run
|
||||||
LOG_INFO("playerbots", "{} random bot guilds available (created this run: {})",
|
LOG_INFO("playerbots", "{} random bot guilds created this run)", createdThisRun);
|
||||||
uint32(sPlayerbotAIConfig->randomBotGuilds.size()), createdThisRun);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string const RandomPlayerbotFactory::CreateRandomGuildName()
|
std::string const RandomPlayerbotFactory::CreateRandomGuildName()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user