Add setLevelProgress function to OpenMW's NpcStats

This commit is contained in:
David Cernat 2016-09-30 06:26:43 +03:00
parent 977b277cdd
commit 8fbc6f31f1
2 changed files with 7 additions and 0 deletions

View file

@ -284,6 +284,12 @@ int MWMechanics::NpcStats::getLevelProgress () const
return mLevelProgress;
}
// Added by tes3mp
void MWMechanics::NpcStats::setLevelProgress(int value)
{
mLevelProgress = value;
}
void MWMechanics::NpcStats::levelUp()
{
const MWWorld::Store<ESM::GameSetting> &gmst =

View file

@ -84,6 +84,7 @@ namespace MWMechanics
void increaseSkill (int skillIndex, const ESM::Class& class_, bool preserveProgress);
int getLevelProgress() const;
void setLevelProgress(int value); // Added by tes3mp
int getLevelupAttributeMultiplier(int attribute) const;