Worldbuff startup fix (#951)

* - [Performance] Fixed world buff loading from config file

* - [Refactoring] Changed mathod name
This commit is contained in:
kadeshar
2025-02-08 12:31:06 +01:00
committed by GitHub
parent db33cecf36
commit 08008a3155
2 changed files with 8 additions and 6 deletions

View File

@@ -35,6 +35,7 @@ enum class HealingManaEfficiency : uint8
};
#define MAX_SPECNO 20
#define MAX_WORLDBUFF_SPECNO 3
class PlayerbotAIConfig
{
@@ -358,7 +359,7 @@ public:
}
void log(std::string const fileName, const char* str, ...);
void loadWorldBuf(uint32 factionId, uint32 classId, uint32 specId, uint32 minLevel, uint32 maxLevel);
void loadWorldBuff(uint32 factionId, uint32 classId, uint32 specId, uint32 minLevel, uint32 maxLevel);
static std::vector<std::vector<uint32>> ParseTempTalentsOrder(uint32 cls, std::string temp_talents_order);
static std::vector<std::vector<uint32>> ParseTempPetTalentsOrder(uint32 spec, std::string temp_talents_order);
};