Merge pull request #242 from liyunfan1223/fix_misspell

[Configuration] Fix misspell
This commit is contained in:
Yunfan Li
2024-06-02 18:49:58 +08:00
committed by GitHub
3 changed files with 6 additions and 6 deletions

View File

@@ -175,7 +175,7 @@ AiPlayerbot.AutoGearCommand = 1
# default: 3 (rare)
AiPlayerbot.AutoGearQualityLimit = 3
# Equips quality limitation for auto gear command (0 = no limit)
# Equips gear score limitation for auto gear command (0 = no limit)
# default: 0 (no limit)
AiPlayerbot.AutoGearScoreLimit = 0
@@ -450,9 +450,9 @@ AiPlayerbot.BotCheats = "taxi"
AiPlayerbot.RandomBotRandomPassword = 0
# Diff with/without player in server. The server will tune bot activity to reach the desired server tick speed (in ms).
# AiPlayerbot.EnablePrototypePerformanceDiff = 0
# AiPlayerbot.DiffWithPlayer = 100
# AiPlayerbot.DiffEmpty = 200
AiPlayerbot.EnablePrototypePerformanceDiff = 0
AiPlayerbot.DiffWithPlayer = 100
AiPlayerbot.DiffEmpty = 200
##################################################################################
# #

View File

@@ -277,7 +277,7 @@ bool PlayerbotAIConfig::Initialize()
addClassCommand = sConfigMgr->GetOption<int32>("AiPlayerbot.AddClassCommand", 1);
maintenanceCommand = sConfigMgr->GetOption<int32>("AiPlayerbot.MaintenanceCommand", 1);
autoGearCommand = sConfigMgr->GetOption<int32>("AiPlayerbot.AutoGearCommand", 1);
autoGearQualityLimit = sConfigMgr->GetOption<int32>("AiPlayerbot.autoGearQualityLimit", 3);
autoGearQualityLimit = sConfigMgr->GetOption<int32>("AiPlayerbot.AutoGearQualityLimit", 3);
autoGearScoreLimit = sConfigMgr->GetOption<int32>("AiPlayerbot.AutoGearScoreLimit", 0);
playerbotsXPrate = sConfigMgr->GetOption<int32>("AiPlayerbot.KillXPRate", 1);

View File

@@ -583,7 +583,7 @@ void PlayerbotFactory::InitPetTalents()
return;
}
CreatureFamilyEntry const* pet_family = sCreatureFamilyStore.LookupEntry(ci->family);
if (pet_family->petTalentType < 0) {
if (!pet_family || pet_family->petTalentType < 0) {
// LOG_INFO("playerbots", "{} init pet talents failed with petTalentType < 0({})", bot->GetName().c_str(), pet_family->petTalentType);
return;
}