mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 13:36:40 +00:00
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)
|
for (int i=0; i<8; ++i)
|
||||||
out.mObject.mNpcStats.mSkillIncrease[i] = pcdt.mPNAM.mSkillIncreases[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;
|
out.mObject.mNpcStats.mLevelProgress = pcdt.mPNAM.mLevelProgress;
|
||||||
|
|
||||||
if (pcdt.mPNAM.mDrawState & PCDT::DrawState_Weapon)
|
if (pcdt.mPNAM.mDrawState & PCDT::DrawState_Weapon)
|
||||||
|
@ -24,9 +26,6 @@ namespace ESSImport
|
||||||
if (pcdt.mPNAM.mDrawState & PCDT::DrawState_Spell)
|
if (pcdt.mPNAM.mDrawState & PCDT::DrawState_Spell)
|
||||||
out.mObject.mCreatureStats.mDrawState = 2;
|
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);
|
firstPersonCam = (pcdt.mPNAM.mCameraState == PCDT::CameraState_FirstPerson);
|
||||||
|
|
||||||
for (std::vector<std::string>::const_iterator it = pcdt.mKnownDialogueTopics.begin();
|
for (std::vector<std::string>::const_iterator it = pcdt.mKnownDialogueTopics.begin();
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace MWMechanics
|
||||||
class NpcStats : public CreatureStats
|
class NpcStats : public CreatureStats
|
||||||
{
|
{
|
||||||
int mDisposition;
|
int mDisposition;
|
||||||
SkillValue mSkill[ESM::Skill::Length];
|
SkillValue mSkill[ESM::Skill::Length]; // SkillValue.mProgress used by the player only
|
||||||
SkillValue mWerewolfSkill[ESM::Skill::Length];
|
SkillValue mWerewolfSkill[ESM::Skill::Length];
|
||||||
int mReputation;
|
int mReputation;
|
||||||
int mCrimeId;
|
int mCrimeId;
|
||||||
|
|
Loading…
Reference in a new issue