ESSImport: convert level progress

openmw-35
scrawl 10 years ago
parent eede2c8e55
commit 5b705196bc

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

@ -51,9 +51,11 @@ struct PCDT
}; };
struct PNAM 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 mSkillIncreases[8]; // number of skill increases for each attribute
unsigned char mUnknown2[88]; unsigned char mUnknown3[88];
}; };
#pragma pack(pop) #pragma pack(pop)

Loading…
Cancel
Save