Added helper function bool EQEmu::IsTradeskill(uint32 skill)

Returns true if you pass a tradeskill to it, otherwise false
This commit is contained in:
Michael Cook (mackal)
2014-09-24 23:35:10 -04:00
parent ec8c46abfe
commit a73ac9cfe8
5 changed files with 53 additions and 19 deletions
+5 -18
View File
@@ -1790,28 +1790,15 @@ bool CheckCharCreateInfoTitanium(CharCreate_Struct *cc)
return Charerrors == 0;
}
void Client::SetClassStartingSkills( PlayerProfile_Struct *pp )
void Client::SetClassStartingSkills(PlayerProfile_Struct *pp)
{
for(uint32 i = 0; i <= HIGHEST_SKILL; ++i) {
if(pp->skills[i] == 0) {
if(i >= SkillSpecializeAbjure && i <= SkillSpecializeEvocation) {
for (uint32 i = 0; i <= HIGHEST_SKILL; ++i) {
if (pp->skills[i] == 0) {
if (i >= SkillSpecializeAbjure && i <= SkillSpecializeEvocation)
continue;
}
if(i == SkillMakePoison ||
i == SkillTinkering ||
i == SkillResearch ||
i == SkillAlchemy ||
i == SkillBaking ||
i == SkillTailoring ||
i == SkillBlacksmithing ||
i == SkillFletching ||
i == SkillBrewing ||
i == SkillPottery ||
i == SkillJewelryMaking ||
i == SkillBegging) {
if (EQEmu::IsTradeskill(i) || i == SkillBegging)
continue;
}
pp->skills[i] = database.GetSkillCap(pp->class_, (SkillUseTypes)i, 1);
}