mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
ESSImport: convert Attacked flag
This commit is contained in:
parent
081c8c8615
commit
7e3843de42
@ -29,6 +29,7 @@ namespace ESSImport
|
|||||||
}
|
}
|
||||||
cStats.mGoldPool = acdt.mGoldPool;
|
cStats.mGoldPool = acdt.mGoldPool;
|
||||||
cStats.mTalkedTo = acdt.mFlags & TalkedToPlayer;
|
cStats.mTalkedTo = acdt.mFlags & TalkedToPlayer;
|
||||||
|
cStats.mAttacked = acdt.mFlags & Attacked;
|
||||||
}
|
}
|
||||||
|
|
||||||
void convertNpcData (const ActorData& actorData, ESM::NpcStats& npcStats)
|
void convertNpcData (const ActorData& actorData, ESM::NpcStats& npcStats)
|
||||||
|
@ -24,7 +24,7 @@ namespace ESSImport
|
|||||||
esm.getHNOT(mACDT, "ACDT");
|
esm.getHNOT(mACDT, "ACDT");
|
||||||
|
|
||||||
ACSC acsc;
|
ACSC acsc;
|
||||||
esm.getHNOT(acsc, "ACSC");
|
esm.getHNOT(acsc, "ACSC"); // skill progress?
|
||||||
esm.getHNOT(acsc, "ACSL");
|
esm.getHNOT(acsc, "ACSL");
|
||||||
|
|
||||||
if (esm.isNextSub("CSTN"))
|
if (esm.isNextSub("CSTN"))
|
||||||
|
@ -17,7 +17,8 @@ namespace ESSImport
|
|||||||
|
|
||||||
enum ACDTFlags
|
enum ACDTFlags
|
||||||
{
|
{
|
||||||
TalkedToPlayer = 0x4
|
TalkedToPlayer = 0x4,
|
||||||
|
Attacked = 0x100
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Actor data, shared by (at least) REFR and CellRef
|
/// Actor data, shared by (at least) REFR and CellRef
|
||||||
@ -28,8 +29,7 @@ namespace ESSImport
|
|||||||
// Note, not stored at *all*:
|
// Note, not stored at *all*:
|
||||||
// - Level changes are lost on reload, except for the player (there it's in the NPC record).
|
// - Level changes are lost on reload, except for the player (there it's in the NPC record).
|
||||||
unsigned char mUnknown[12];
|
unsigned char mUnknown[12];
|
||||||
unsigned char mFlags; // ACDTFlags
|
unsigned int mFlags;
|
||||||
unsigned char mUnknown1[3];
|
|
||||||
float mBreathMeter; // Seconds left before drowning
|
float mBreathMeter; // Seconds left before drowning
|
||||||
unsigned char mUnknown2[20];
|
unsigned char mUnknown2[20];
|
||||||
float mDynamic[3][2];
|
float mDynamic[3][2];
|
||||||
|
Loading…
Reference in New Issue
Block a user