mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
EQEmu::IsTradeskill uint32 to SkillUseTypes
This commit is contained in:
parent
225929d937
commit
723e5d536a
@ -18,7 +18,7 @@
|
|||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "skills.h"
|
#include "skills.h"
|
||||||
|
|
||||||
bool EQEmu::IsTradeskill(uint32 skill)
|
bool EQEmu::IsTradeskill(SkillUseTypes skill)
|
||||||
{
|
{
|
||||||
switch (skill) {
|
switch (skill) {
|
||||||
case SkillFishing:
|
case SkillFishing:
|
||||||
|
|||||||
@ -262,7 +262,7 @@ typedef enum {
|
|||||||
|
|
||||||
// for skill related helper functions
|
// for skill related helper functions
|
||||||
namespace EQEmu {
|
namespace EQEmu {
|
||||||
bool IsTradeskill(uint32 skill);
|
bool IsTradeskill(SkillUseTypes skill);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -1797,7 +1797,7 @@ void Client::SetClassStartingSkills(PlayerProfile_Struct *pp)
|
|||||||
if (i >= SkillSpecializeAbjure && i <= SkillSpecializeEvocation)
|
if (i >= SkillSpecializeAbjure && i <= SkillSpecializeEvocation)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (EQEmu::IsTradeskill(i) || i == SkillBegging)
|
if (EQEmu::IsTradeskill((SkillUseTypes)i) || i == SkillBegging)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
pp->skills[i] = database.GetSkillCap(pp->class_, (SkillUseTypes)i, 1);
|
pp->skills[i] = database.GetSkillCap(pp->class_, (SkillUseTypes)i, 1);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user