PremadeSpecGlyph config (unimplemented)

This commit is contained in:
Yunfan Li
2024-03-05 00:11:53 +08:00
parent d99e6d9fbb
commit b7b334af99
6 changed files with 30 additions and 4 deletions

View File

@@ -172,6 +172,16 @@ bool PlayerbotAIConfig::Initialize()
std::ostringstream os;
os << "AiPlayerbot.PremadeSpecName." << cls << "." << spec;
premadeSpecName[cls][spec] = sConfigMgr->GetOption<std::string>(os.str().c_str(), "", false);
os.str("");
os.clear();
os << "AiPlayerbot.PremadeSpecGlyph." << cls << "." << spec;
premadeSpecGlyph[cls][spec] = sConfigMgr->GetOption<std::string>(os.str().c_str(), "", false);
std::vector<std::string> splitSpecGlyph = split(premadeSpecGlyph[cls][spec], ',');
for (std::string &split : splitSpecGlyph) {
if (split.size() != 0) {
parsedSpecGlyph[cls][spec].push_back(atoi(split.c_str()));
}
}
for (uint32 level = 0; level < MAX_LEVEL; ++level) {
std::ostringstream os;
os << "AiPlayerbot.PremadeSpecLink." << cls << "." << spec << "." << level;