mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:53:50 +00:00
Fix iLevelUpTotal not being used in the levelUp logic
This commit is contained in:
parent
55cd9b526c
commit
b5e0e45c78
1 changed files with 5 additions and 4 deletions
|
@ -264,13 +264,14 @@ int MWMechanics::NpcStats::getLevelProgress () const
|
||||||
|
|
||||||
void MWMechanics::NpcStats::levelUp()
|
void MWMechanics::NpcStats::levelUp()
|
||||||
{
|
{
|
||||||
mLevelProgress -= 10;
|
|
||||||
for (int i=0; i<ESM::Attribute::Length; ++i)
|
|
||||||
mSkillIncreases[i] = 0;
|
|
||||||
|
|
||||||
const MWWorld::Store<ESM::GameSetting> &gmst =
|
const MWWorld::Store<ESM::GameSetting> &gmst =
|
||||||
MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>();
|
MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>();
|
||||||
|
|
||||||
|
mLevelProgress -= gmst.find("iLevelUpTotal")->getInt();
|
||||||
|
|
||||||
|
for (int i=0; i<ESM::Attribute::Length; ++i)
|
||||||
|
mSkillIncreases[i] = 0;
|
||||||
|
|
||||||
const int endurance = getAttribute(ESM::Attribute::Endurance).getBase();
|
const int endurance = getAttribute(ESM::Attribute::Endurance).getBase();
|
||||||
|
|
||||||
// "When you gain a level, in addition to increasing three primary attributes, your Health
|
// "When you gain a level, in addition to increasing three primary attributes, your Health
|
||||||
|
|
Loading…
Reference in a new issue