mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-14 01:19:59 +00:00
Fix iLevelUpTotal not being used in the levelUp logic
This commit is contained in:
parent
55cd9b526c
commit
b5e0e45c78
@ -264,13 +264,14 @@ int MWMechanics::NpcStats::getLevelProgress () const
|
||||
|
||||
void MWMechanics::NpcStats::levelUp()
|
||||
{
|
||||
mLevelProgress -= 10;
|
||||
for (int i=0; i<ESM::Attribute::Length; ++i)
|
||||
mSkillIncreases[i] = 0;
|
||||
|
||||
const MWWorld::Store<ESM::GameSetting> &gmst =
|
||||
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();
|
||||
|
||||
// "When you gain a level, in addition to increasing three primary attributes, your Health
|
||||
|
Loading…
x
Reference in New Issue
Block a user