Health does not increase with STR/END/WIL
Health is correctly calculated only after initialization of NCGDMW, subsequent changes of STR/END/WIL does nothing.
My character stats:
Level | END | STR | WIL | HP |
---|---|---|---|---|
1 | 39 | 38 | 35 | 66 |
10 | 44 | 43 | 39 | 66 |
21 | 50 | 52 | 46 | 66 |
I think the cause is that healthAttributes
is not preserved between saves and therefore recalculate
in doHealth()
is never true
.
When I add the following code at the beginning of doHealth()
, everything works.
for _, attr in ipairs({'strength','endurance','willpower'}) do
if not healthAttributes[attr] then
healthAttributes[attr] = Player.stats.attributes[attr]
end
end
(OpenMW git changeset 964f288c138867a3e772dc1bee84afe6fb88ae92)