|
|
@ -90,8 +90,8 @@ void ESM::CreatureStats::load (ESMReader &esm)
|
|
|
|
mActorId = -1;
|
|
|
|
mActorId = -1;
|
|
|
|
esm.getHNOT (mActorId, "ACID");
|
|
|
|
esm.getHNOT (mActorId, "ACID");
|
|
|
|
|
|
|
|
|
|
|
|
mHitAttemptActorId = -1;
|
|
|
|
//mHitAttemptActorId = -1;
|
|
|
|
esm.getHNOT(mHitAttemptActorId, "HAID");
|
|
|
|
//esm.getHNOT(mHitAttemptActorId, "HAID");
|
|
|
|
|
|
|
|
|
|
|
|
mDeathAnimation = -1;
|
|
|
|
mDeathAnimation = -1;
|
|
|
|
esm.getHNOT (mDeathAnimation, "DANM");
|
|
|
|
esm.getHNOT (mDeathAnimation, "DANM");
|
|
|
@ -206,8 +206,8 @@ void ESM::CreatureStats::save (ESMWriter &esm) const
|
|
|
|
if (mActorId != -1)
|
|
|
|
if (mActorId != -1)
|
|
|
|
esm.writeHNT ("ACID", mActorId);
|
|
|
|
esm.writeHNT ("ACID", mActorId);
|
|
|
|
|
|
|
|
|
|
|
|
if (mHitAttemptActorId != -1)
|
|
|
|
//if (mHitAttemptActorId != -1)
|
|
|
|
esm.writeHNT("HAID", mHitAttemptActorId);
|
|
|
|
// esm.writeHNT("HAID", mHitAttemptActorId);
|
|
|
|
|
|
|
|
|
|
|
|
if (mDeathAnimation != -1)
|
|
|
|
if (mDeathAnimation != -1)
|
|
|
|
esm.writeHNT ("DANM", mDeathAnimation);
|
|
|
|
esm.writeHNT ("DANM", mDeathAnimation);
|
|
|
@ -246,7 +246,7 @@ void ESM::CreatureStats::blank()
|
|
|
|
mTradeTime.mDay = 0;
|
|
|
|
mTradeTime.mDay = 0;
|
|
|
|
mGoldPool = 0;
|
|
|
|
mGoldPool = 0;
|
|
|
|
mActorId = -1;
|
|
|
|
mActorId = -1;
|
|
|
|
mHitAttemptActorId = -1;
|
|
|
|
//mHitAttemptActorId = -1;
|
|
|
|
mHasAiSettings = false;
|
|
|
|
mHasAiSettings = false;
|
|
|
|
mDead = false;
|
|
|
|
mDead = false;
|
|
|
|
mDeathAnimationFinished = false;
|
|
|
|
mDeathAnimationFinished = false;
|
|
|
|