forked from mirror/openmw-tes3mp
NPC: take stats from NPDT12 into account
Some available stats (level, reputation and disposition) were not used for NPC with auto-calculated stats.
This commit is contained in:
parent
951eb1b236
commit
05796d85a4
1 changed files with 3 additions and 2 deletions
|
@ -100,14 +100,15 @@ namespace MWClass
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/// \todo do something with mNpdt12 maybe:p
|
|
||||||
for (int i=0; i<8; ++i)
|
for (int i=0; i<8; ++i)
|
||||||
data->mCreatureStats.getAttribute (i).set (10);
|
data->mCreatureStats.getAttribute (i).set (10);
|
||||||
|
|
||||||
for (int i=0; i<3; ++i)
|
for (int i=0; i<3; ++i)
|
||||||
data->mCreatureStats.setDynamic (i, 10);
|
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);
|
data->mCreatureStats.setAiSetting (0, ref->mBase->mAiData.mHello);
|
||||||
|
|
Loading…
Reference in a new issue