|
|
@ -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
|
|
|
|