Commit 1c330fc8 authored by Emanuel Guevel's avatar Emanuel Guevel

Use the correct formula for NPC health initialization

parent 2356e621
......@@ -110,9 +110,10 @@ namespace
+ static_cast<int>((level-1) * modifierSum+0.5), 100) );
}
// initial health
int strength = creatureStats.getAttribute(ESM::Attribute::Strength).getBase();
int endurance = creatureStats.getAttribute(ESM::Attribute::Endurance).getBase();
creatureStats.setHealth(static_cast<int> (0.5 * (strength + endurance)) + creatureStats.getLevelHealthBonus());
creatureStats.setHealth(static_cast<int> (0.5 * (strength + endurance)) + 4 * (creatureStats.getLevel() - 1));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment