mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Improve druid cat spec
This commit is contained in:
@@ -329,15 +329,22 @@ bool PlayerbotAIConfig::Initialize()
|
||||
parsedSpecLinkOrder[cls][spec][level] = ParseTempTalentsOrder(cls, premadeSpecLink[cls][spec][level]);
|
||||
}
|
||||
}
|
||||
for (uint32 spec = 0; spec < 3; ++spec)
|
||||
for (uint32 spec = 0; spec < MAX_SPECNO; ++spec)
|
||||
{
|
||||
std::ostringstream os;
|
||||
os << "AiPlayerbot.RandomClassSpecProb." << cls << "." << spec;
|
||||
randomClassSpecProb[cls][spec] = sConfigMgr->GetOption<uint32>(os.str().c_str(), 33);
|
||||
uint32 def;
|
||||
if (spec <= 1)
|
||||
def = 33;
|
||||
else if (spec == 2)
|
||||
def = 34;
|
||||
else
|
||||
def = 0;
|
||||
randomClassSpecProb[cls][spec] = sConfigMgr->GetOption<uint32>(os.str().c_str(), def, false);
|
||||
os.str("");
|
||||
os.clear();
|
||||
os << "AiPlayerbot.RandomClassSpecIndex." << cls << "." << spec;
|
||||
randomClassSpecIndex[cls][spec] = sConfigMgr->GetOption<uint32>(os.str().c_str(), spec + 1);
|
||||
randomClassSpecIndex[cls][spec] = sConfigMgr->GetOption<uint32>(os.str().c_str(), spec, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user