增加是否允许登录其它玩家角色为机器人的配置

This commit is contained in:
Oiuv
2024-04-01 00:13:14 +08:00
parent 429bce3080
commit fbff4371a0
2 changed files with 9 additions and 7 deletions

View File

@@ -18,7 +18,8 @@ AiPlayerbot.DeleteRandomBotAccounts = 0
AiPlayerbot.BotAutologin = 0
# Allow login other players' characters as bots
AiPlayerbot.allowPlayerBots = 0
# Default: 0 (disabled)
AiPlayerbot.AllowPlayerBots = 0
# Guild Task system
AiPlayerbot.EnableGuildTasks = 0

View File

@@ -98,6 +98,7 @@ bool PlayerbotAIConfig::Initialize()
iterationsPerTick = sConfigMgr->GetOption<int32>("AiPlayerbot.IterationsPerTick", 100);
allowGuildBots = sConfigMgr->GetOption<bool>("AiPlayerbot.AllowGuildBots", true);
allowPlayerBots = sConfigMgr->GetOption<bool>("AiPlayerbot.AllowPlayerBots", false);
randomBotMapsAsString = sConfigMgr->GetOption<std::string>("AiPlayerbot.RandomBotMaps", "0,1,530,571");
LoadList<std::vector<uint32>>(randomBotMapsAsString, randomBotMaps);