mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Only invoke InitGuild when randomBotGuildCount > 0 (#975)
* Only invoke InitGuild when randomBotGuildCount > 0 * Moved Random bot guild count/delete to more appropriate section of config.
This commit is contained in:
@@ -132,6 +132,12 @@ AiPlayerbot.AllowAccountBots = 1
|
|||||||
# Allow/deny bots in the player's guild
|
# Allow/deny bots in the player's guild
|
||||||
AiPlayerbot.AllowGuildBots = 1
|
AiPlayerbot.AllowGuildBots = 1
|
||||||
|
|
||||||
|
# Random bot guild count
|
||||||
|
AiPlayerbot.RandomBotGuildCount = 20
|
||||||
|
|
||||||
|
# Delete all random bot guilds
|
||||||
|
AiPlayerbot.DeleteRandomBotGuilds = 0
|
||||||
|
|
||||||
# Randombots will invite nearby bots to guilds
|
# Randombots will invite nearby bots to guilds
|
||||||
AiPlayerbot.RandomBotGuildNearby = 0
|
AiPlayerbot.RandomBotGuildNearby = 0
|
||||||
|
|
||||||
@@ -1622,12 +1628,6 @@ AiPlayerbot.EnableGuildTasks = 0
|
|||||||
# Enable dungeon suggestions in lower case randomly
|
# Enable dungeon suggestions in lower case randomly
|
||||||
AiPlayerbot.SuggestDungeonsInLowerCaseRandomly = 0
|
AiPlayerbot.SuggestDungeonsInLowerCaseRandomly = 0
|
||||||
|
|
||||||
# Random bot guild count
|
|
||||||
AiPlayerbot.RandomBotGuildCount = 20
|
|
||||||
|
|
||||||
# Delete all random bot guilds
|
|
||||||
AiPlayerbot.DeleteRandomBotGuilds = 0
|
|
||||||
|
|
||||||
# Chance bot chooses RPG (Teleport to random camp for their level) instead of grinding
|
# Chance bot chooses RPG (Teleport to random camp for their level) instead of grinding
|
||||||
AiPlayerbot.RandomBotRpgChance = 0.20
|
AiPlayerbot.RandomBotRpgChance = 0.20
|
||||||
|
|
||||||
|
|||||||
@@ -392,9 +392,12 @@ void PlayerbotFactory::Randomize(bool incremental)
|
|||||||
// bot->SaveToDB(false, false);
|
// bot->SaveToDB(false, false);
|
||||||
|
|
||||||
// pmo = sPerformanceMonitor->start(PERF_MON_RNDBOT, "PlayerbotFactory_Guilds");
|
// pmo = sPerformanceMonitor->start(PERF_MON_RNDBOT, "PlayerbotFactory_Guilds");
|
||||||
// LOG_INFO("playerbots", "Initializing guilds...");
|
|
||||||
// bot->SaveToDB(false, false);
|
// bot->SaveToDB(false, false);
|
||||||
InitGuild();
|
if (sPlayerbotAIConfig->randomBotGuildCount > 0)
|
||||||
|
{
|
||||||
|
LOG_INFO("playerbots", "Initializing guilds...");
|
||||||
|
InitGuild();
|
||||||
|
}
|
||||||
// bot->SaveToDB(false, false);
|
// bot->SaveToDB(false, false);
|
||||||
// if (pmo)
|
// if (pmo)
|
||||||
// pmo->finish();
|
// pmo->finish();
|
||||||
|
|||||||
Reference in New Issue
Block a user