forked from mirror/openmw-tes3mp
Add getSkillIncrease, setSkillIncrease functions to OpenMW's NpcStats
This commit is contained in:
parent
f4621d8529
commit
15a4602482
2 changed files with 15 additions and 0 deletions
|
@ -290,6 +290,18 @@ void MWMechanics::NpcStats::setLevelProgress(int value)
|
||||||
mLevelProgress = 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()
|
void MWMechanics::NpcStats::levelUp()
|
||||||
{
|
{
|
||||||
const MWWorld::Store<ESM::GameSetting> &gmst =
|
const MWWorld::Store<ESM::GameSetting> &gmst =
|
||||||
|
|
|
@ -86,6 +86,9 @@ namespace MWMechanics
|
||||||
int getLevelProgress() const;
|
int getLevelProgress() const;
|
||||||
void setLevelProgress(int value); // Added by tes3mp
|
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 getLevelupAttributeMultiplier(int attribute) const;
|
||||||
|
|
||||||
int getSkillIncreasesForSpecialization(int spec) const;
|
int getSkillIncreasesForSpecialization(int spec) const;
|
||||||
|
|
Loading…
Reference in a new issue