mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 16:45:17 -04:00
Add getSkillIncrease, setSkillIncrease functions to OpenMW's NpcStats
This commit is contained in:
parent
f4621d8529
commit
15a4602482
@ -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…
x
Reference in New Issue
Block a user