forked from teamnwah/openmw-tes3coop
ESSImport: import player skill progress
This commit is contained in:
parent
ae77eacd7e
commit
f0b1d889c0
2 changed files with 3 additions and 4 deletions
|
@ -17,6 +17,8 @@ namespace ESSImport
|
|||
}
|
||||
for (int i=0; i<8; ++i)
|
||||
out.mObject.mNpcStats.mSkillIncrease[i] = pcdt.mPNAM.mSkillIncreases[i];
|
||||
for (int i=0; i<27; ++i)
|
||||
out.mObject.mNpcStats.mSkills[i].mRegular.mProgress = pcdt.mPNAM.mSkillProgress[i];
|
||||
out.mObject.mNpcStats.mLevelProgress = pcdt.mPNAM.mLevelProgress;
|
||||
|
||||
if (pcdt.mPNAM.mDrawState & PCDT::DrawState_Weapon)
|
||||
|
@ -24,9 +26,6 @@ namespace ESSImport
|
|||
if (pcdt.mPNAM.mDrawState & PCDT::DrawState_Spell)
|
||||
out.mObject.mCreatureStats.mDrawState = 2;
|
||||
|
||||
// TODO: convert PNAM.mSkillProgress, needs to be converted to uniform scale
|
||||
// (or change openmw to accept non-uniform skill progress)
|
||||
|
||||
firstPersonCam = (pcdt.mPNAM.mCameraState == PCDT::CameraState_FirstPerson);
|
||||
|
||||
for (std::vector<std::string>::const_iterator it = pcdt.mKnownDialogueTopics.begin();
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace MWMechanics
|
|||
class NpcStats : public CreatureStats
|
||||
{
|
||||
int mDisposition;
|
||||
SkillValue mSkill[ESM::Skill::Length];
|
||||
SkillValue mSkill[ESM::Skill::Length]; // SkillValue.mProgress used by the player only
|
||||
SkillValue mWerewolfSkill[ESM::Skill::Length];
|
||||
int mReputation;
|
||||
int mCrimeId;
|
||||
|
|
Loading…
Reference in a new issue