1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-03 17:37:18 +00:00

ESSImport: convert level progress

This commit is contained in:
scrawl 2015-01-20 19:47:54 +01:00
parent eede2c8e55
commit 5b705196bc
2 changed files with 5 additions and 2 deletions

View File

@ -217,6 +217,7 @@ public:
}
for (int i=0; i<8; ++i)
mContext->mPlayer.mObject.mNpcStats.mSkillIncrease[i] = pcdt.mPNAM.mSkillIncreases[i];
mContext->mPlayer.mObject.mNpcStats.mLevelProgress = pcdt.mPNAM.mLevelProgress;
for (std::vector<std::string>::const_iterator it = pcdt.mKnownDialogueTopics.begin();
it != pcdt.mKnownDialogueTopics.end(); ++it)

View File

@ -51,9 +51,11 @@ struct PCDT
};
struct PNAM
{
unsigned char mUnknown1[116];
unsigned char mUnknown1[4];
unsigned char mLevelProgress;
unsigned char mUnknown2[111];
unsigned char mSkillIncreases[8]; // number of skill increases for each attribute
unsigned char mUnknown2[88];
unsigned char mUnknown3[88];
};
#pragma pack(pop)