forked from teamnwah/openmw-tes3coop
Add setLevelProgress function to OpenMW's NpcStats
This commit is contained in:
parent
977b277cdd
commit
8fbc6f31f1
2 changed files with 7 additions and 0 deletions
|
@ -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…
Reference in a new issue