forked from teamnwah/openmw-tes3coop
Fix autocalculated NPCs not having health/magicka/fatigue set correctly (Fixes #1943)
This commit is contained in:
parent
b1e74e2a85
commit
fb26c2c2de
1 changed files with 4 additions and 2 deletions
|
@ -335,6 +335,8 @@ namespace MWClass
|
||||||
data->mNpcStats.setLevel(ref->mBase->mNpdt52.mLevel);
|
data->mNpcStats.setLevel(ref->mBase->mNpdt52.mLevel);
|
||||||
data->mNpcStats.setBaseDisposition(ref->mBase->mNpdt52.mDisposition);
|
data->mNpcStats.setBaseDisposition(ref->mBase->mNpdt52.mDisposition);
|
||||||
data->mNpcStats.setReputation(ref->mBase->mNpdt52.mReputation);
|
data->mNpcStats.setReputation(ref->mBase->mNpdt52.mReputation);
|
||||||
|
|
||||||
|
data->mNpcStats.setNeedRecalcDynamicStats(false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -349,6 +351,8 @@ namespace MWClass
|
||||||
|
|
||||||
autoCalculateAttributes(ref->mBase, data->mNpcStats);
|
autoCalculateAttributes(ref->mBase, data->mNpcStats);
|
||||||
autoCalculateSkills(ref->mBase, data->mNpcStats, ptr);
|
autoCalculateSkills(ref->mBase, data->mNpcStats, ptr);
|
||||||
|
|
||||||
|
data->mNpcStats.setNeedRecalcDynamicStats(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// race powers
|
// race powers
|
||||||
|
@ -388,8 +392,6 @@ namespace MWClass
|
||||||
|
|
||||||
data->mNpcStats.setGoldPool(gold);
|
data->mNpcStats.setGoldPool(gold);
|
||||||
|
|
||||||
data->mNpcStats.setNeedRecalcDynamicStats(false);
|
|
||||||
|
|
||||||
// store
|
// store
|
||||||
ptr.getRefData().setCustomData (data.release());
|
ptr.getRefData().setCustomData (data.release());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue