Add getSkillIncrease, setSkillIncrease functions to OpenMW's NpcStats

pull/76/head
David Cernat 8 years ago
parent f4621d8529
commit 15a4602482

@ -290,6 +290,18 @@ void MWMechanics::NpcStats::setLevelProgress(int value)
mLevelProgress = value;
}
// Added by tes3mp
int MWMechanics::NpcStats::getSkillIncrease(int attribute) const
{
return mSkillIncreases[attribute];
}
// Added by tes3mp
void MWMechanics::NpcStats::setSkillIncrease(int attribute, int value)
{
mSkillIncreases[attribute] = value;
}
void MWMechanics::NpcStats::levelUp()
{
const MWWorld::Store<ESM::GameSetting> &gmst =

@ -86,6 +86,9 @@ namespace MWMechanics
int getLevelProgress() const;
void setLevelProgress(int value); // Added by tes3mp
int getSkillIncrease(int attribute) const; // Added by tes3mp
void setSkillIncrease(int attribute, int value); // Added by tes3mp
int getLevelupAttributeMultiplier(int attribute) const;
int getSkillIncreasesForSpecialization(int spec) const;

Loading…
Cancel
Save