removed some hardcoded 100 skill caps

fix/skillcap
Tim Bazuin 5 years ago
parent 7e858cdfc7
commit 27eca7b196

@ -133,9 +133,9 @@ namespace
} }
modifierSum += add; modifierSum += add;
} }
creatureStats.setAttribute(attribute, std::min(
round_ieee_754(creatureStats.getAttribute(attribute).getBase() creatureStats.setAttribute(attribute,
+ (level-1) * modifierSum), 100) ); round_ieee_754(creatureStats.getAttribute(attribute).getBase() + (level-1) * modifierSum) );
} }
// initial health // initial health
@ -230,13 +230,12 @@ namespace
} }
npcStats.getSkill(skillIndex).setBase( npcStats.getSkill(skillIndex).setBase(
std::min(
round_ieee_754( round_ieee_754(
npcStats.getSkill(skillIndex).getBase() npcStats.getSkill(skillIndex).getBase()
+ 5 + 5
+ raceBonus + raceBonus
+ specBonus + specBonus
+(int(level)-1) * (majorMultiplier + specMultiplier)), 100)); // Must gracefully handle level 0 +(int(level)-1) * (majorMultiplier + specMultiplier))); // Must gracefully handle level 0
} }
int skills[ESM::Skill::Length]; int skills[ESM::Skill::Length];

@ -218,9 +218,6 @@ void MWMechanics::NpcStats::increaseSkill(int skillIndex, const ESM::Class &clas
{ {
int base = getSkill (skillIndex).getBase(); int base = getSkill (skillIndex).getBase();
if (base >= 100)
return;
base += 1; base += 1;
const MWWorld::Store<ESM::GameSetting> &gmst = const MWWorld::Store<ESM::GameSetting> &gmst =

Loading…
Cancel
Save