|
|
|
@ -133,9 +133,9 @@ namespace
|
|
|
|
|
}
|
|
|
|
|
modifierSum += add;
|
|
|
|
|
}
|
|
|
|
|
creatureStats.setAttribute(attribute, std::min(
|
|
|
|
|
round_ieee_754(creatureStats.getAttribute(attribute).getBase()
|
|
|
|
|
+ (level-1) * modifierSum), 100) );
|
|
|
|
|
|
|
|
|
|
creatureStats.setAttribute(attribute,
|
|
|
|
|
round_ieee_754(creatureStats.getAttribute(attribute).getBase() + (level-1) * modifierSum) );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// initial health
|
|
|
|
@ -230,13 +230,12 @@ namespace
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
npcStats.getSkill(skillIndex).setBase(
|
|
|
|
|
std::min(
|
|
|
|
|
round_ieee_754(
|
|
|
|
|
npcStats.getSkill(skillIndex).getBase()
|
|
|
|
|
+ 5
|
|
|
|
|
+ raceBonus
|
|
|
|
|
+ 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];
|
|
|
|
|