mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 22:36:43 +00:00
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;
|
return mLevelProgress;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Added by tes3mp
|
||||||
|
void MWMechanics::NpcStats::setLevelProgress(int value)
|
||||||
|
{
|
||||||
|
mLevelProgress = value;
|
||||||
|
}
|
||||||
|
|
||||||
void MWMechanics::NpcStats::levelUp()
|
void MWMechanics::NpcStats::levelUp()
|
||||||
{
|
{
|
||||||
const MWWorld::Store<ESM::GameSetting> &gmst =
|
const MWWorld::Store<ESM::GameSetting> &gmst =
|
||||||
|
|
|
@ -84,6 +84,7 @@ namespace MWMechanics
|
||||||
void increaseSkill (int skillIndex, const ESM::Class& class_, bool preserveProgress);
|
void increaseSkill (int skillIndex, const ESM::Class& class_, bool preserveProgress);
|
||||||
|
|
||||||
int getLevelProgress() const;
|
int getLevelProgress() const;
|
||||||
|
void setLevelProgress(int value); // Added by tes3mp
|
||||||
|
|
||||||
int getLevelupAttributeMultiplier(int attribute) const;
|
int getLevelupAttributeMultiplier(int attribute) const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue