NPC: take stats from NPDT12 into account

Some available stats (level, reputation and disposition) were not used
for NPC with auto-calculated stats.
actorid
Emanuel Guevel 12 years ago
parent 951eb1b236
commit 05796d85a4

@ -100,14 +100,15 @@ namespace MWClass
}
else
{
/// \todo do something with mNpdt12 maybe:p
for (int i=0; i<8; ++i)
data->mCreatureStats.getAttribute (i).set (10);
for (int i=0; i<3; ++i)
data->mCreatureStats.setDynamic (i, 10);
data->mCreatureStats.setLevel (1);
data->mCreatureStats.setLevel(ref->mBase->mNpdt12.mLevel);
data->mNpcStats.setBaseDisposition(ref->mBase->mNpdt12.mDisposition);
data->mNpcStats.setReputation(ref->mBase->mNpdt12.mReputation);
}
data->mCreatureStats.setAiSetting (0, ref->mBase->mAiData.mHello);

Loading…
Cancel
Save