From 2e47290ed0e327b63372feb3e136a6a640744d70 Mon Sep 17 00:00:00 2001 From: Marco Melletti Date: Fri, 5 Sep 2014 21:23:25 +0200 Subject: [PATCH] finished loadnpc.hpp, fixed npdt 52byte structure --- components/esm/loadnpc.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/esm/loadnpc.hpp b/components/esm/loadnpc.hpp index 31104a71fb..5e78432f6d 100644 --- a/components/esm/loadnpc.hpp +++ b/components/esm/loadnpc.hpp @@ -80,14 +80,14 @@ struct NPC mPersonality, mLuck; - // mSkill vals are used only in MWMechanics::AttributeValue.setBase(), if less than 0 they are not considered + // mSkill cang grow up to 200, it must be unsigned unsigned char mSkills[Skill::Length]; // at opencs/model/tools/referenceablecheck.cpp:679 is assumed that negative reputation values are invalid, can we assume we won't find any negative value? - unsigned char mReputation; + char mUnknown1; unsigned short mHealth, mMana, mFatigue; - signed char mDisposition, mFactionID, mRank; - char mUnknown; + signed char mDisposition, mReputation, mRank; + char mUnknown2; int mGold; }; // 52 bytes