Add setLevelProgress function to OpenMW's NpcStats

coverity_scan^2
David Cernat 8 years ago
parent 977b277cdd
commit 8fbc6f31f1

@ -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 =

@ -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;

Loading…
Cancel
Save