1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 12:20:41 +00:00

ESSImport: convert Attacked flag

This commit is contained in:
scrawl 2015-01-30 16:14:53 +01:00
parent 081c8c8615
commit 7e3843de42
3 changed files with 5 additions and 4 deletions

View File

@ -29,6 +29,7 @@ namespace ESSImport
}
cStats.mGoldPool = acdt.mGoldPool;
cStats.mTalkedTo = acdt.mFlags & TalkedToPlayer;
cStats.mAttacked = acdt.mFlags & Attacked;
}
void convertNpcData (const ActorData& actorData, ESM::NpcStats& npcStats)

View File

@ -24,7 +24,7 @@ namespace ESSImport
esm.getHNOT(mACDT, "ACDT");
ACSC acsc;
esm.getHNOT(acsc, "ACSC");
esm.getHNOT(acsc, "ACSC"); // skill progress?
esm.getHNOT(acsc, "ACSL");
if (esm.isNextSub("CSTN"))

View File

@ -17,7 +17,8 @@ namespace ESSImport
enum ACDTFlags
{
TalkedToPlayer = 0x4
TalkedToPlayer = 0x4,
Attacked = 0x100
};
/// Actor data, shared by (at least) REFR and CellRef
@ -28,8 +29,7 @@ namespace ESSImport
// Note, not stored at *all*:
// - Level changes are lost on reload, except for the player (there it's in the NPC record).
unsigned char mUnknown[12];
unsigned char mFlags; // ACDTFlags
unsigned char mUnknown1[3];
unsigned int mFlags;
float mBreathMeter; // Seconds left before drowning
unsigned char mUnknown2[20];
float mDynamic[3][2];