|
|
|
@ -18,6 +18,7 @@ void Creature::load(ESMReader &esm, const std::string& id)
|
|
|
|
|
esm.getHNOT(scale, "XSCL");
|
|
|
|
|
|
|
|
|
|
inventory.load(esm);
|
|
|
|
|
spells.load(esm);
|
|
|
|
|
|
|
|
|
|
if (esm.isNextSub("AIDT"))
|
|
|
|
|
{
|
|
|
|
@ -27,20 +28,8 @@ void Creature::load(ESMReader &esm, const std::string& id)
|
|
|
|
|
else
|
|
|
|
|
hasAI = false;
|
|
|
|
|
|
|
|
|
|
// More subrecords:
|
|
|
|
|
// AI_W - wander (14 bytes, i don't understand it)
|
|
|
|
|
// short distance
|
|
|
|
|
// byte duration
|
|
|
|
|
// byte timeOfDay
|
|
|
|
|
// byte idle[10]
|
|
|
|
|
//
|
|
|
|
|
// Rest is optional:
|
|
|
|
|
// AI_T - travel?
|
|
|
|
|
// AI_F - follow?
|
|
|
|
|
// AI_E - escort?
|
|
|
|
|
// AI_A - activate?
|
|
|
|
|
aiPack.load(esm);
|
|
|
|
|
esm.skipRecord();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|