From 98ad5a28eda08d6e3ae26f5a14366ee676d59a27 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Mon, 25 Mar 2024 19:15:22 +0800 Subject: [PATCH] Change default SaveManaThreshold=60 --- conf/playerbots.conf.dist | 4 ++-- src/PlayerbotAIConfig.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/playerbots.conf.dist b/conf/playerbots.conf.dist index ad187a62..8abae51e 100644 --- a/conf/playerbots.conf.dist +++ b/conf/playerbots.conf.dist @@ -312,8 +312,8 @@ AiPlayerbot.MediumMana = 40 AiPlayerbot.AutoSaveMana = 1 # Healer bot save mana threshold -# Default: 100 (full) -AiPlayerbot.SaveManaThreshold = 100 +# Default: 60 (60%) +AiPlayerbot.SaveManaThreshold = 60 AiPlayerbot.RandomBotCombatStrategies = "+dps,+dps assist,-threat" diff --git a/src/PlayerbotAIConfig.cpp b/src/PlayerbotAIConfig.cpp index 2cf10bf5..0d86bc4f 100644 --- a/src/PlayerbotAIConfig.cpp +++ b/src/PlayerbotAIConfig.cpp @@ -89,7 +89,7 @@ bool PlayerbotAIConfig::Initialize() lowMana = sConfigMgr->GetOption("AiPlayerbot.LowMana", 15); mediumMana = sConfigMgr->GetOption("AiPlayerbot.MediumMana", 40); autoSaveMana = sConfigMgr->GetOption("AiPlayerbot.AutoSaveMana", true); - saveManaThreshold = sConfigMgr->GetOption("AiPlayerbot.SaveManaThreshold", 100); + saveManaThreshold = sConfigMgr->GetOption("AiPlayerbot.SaveManaThreshold", 60); randomGearLoweringChance = sConfigMgr->GetOption("AiPlayerbot.RandomGearLoweringChance", 0.15f); randomBotMaxLevelChance = sConfigMgr->GetOption("AiPlayerbot.RandomBotMaxLevelChance", 0.15f);