|
|
|
@ -93,4 +93,53 @@ void NPC::save(ESMWriter &esm)
|
|
|
|
|
mAiPackage.save(esm);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool NPC::isMale() const {
|
|
|
|
|
return (mFlags & Female) == 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void NPC::setIsMale(bool value) {
|
|
|
|
|
mFlags |= Female;
|
|
|
|
|
if (value) {
|
|
|
|
|
mFlags ^= Female;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void NPC::blank()
|
|
|
|
|
{
|
|
|
|
|
mNpdtType = 0;
|
|
|
|
|
mNpdt52.mLevel = 0;
|
|
|
|
|
mNpdt52.mStrength = mNpdt52.mIntelligence = mNpdt52.mWillpower = mNpdt52.mAgility =
|
|
|
|
|
mNpdt52.mSpeed = mNpdt52.mEndurance = mNpdt52.mPersonality = mNpdt52.mLuck = 0;
|
|
|
|
|
for (int i=0; i<27; ++i) mNpdt52.mSkills[i] = 0;
|
|
|
|
|
mNpdt52.mReputation = 0;
|
|
|
|
|
mNpdt52.mHealth = mNpdt52.mMana = mNpdt52.mFatigue = 0;
|
|
|
|
|
mNpdt52.mDisposition = 0;
|
|
|
|
|
mNpdt52.mFactionID = 0;
|
|
|
|
|
mNpdt52.mRank = 0;
|
|
|
|
|
mNpdt52.mUnknown = 0;
|
|
|
|
|
mNpdt52.mGold = 0;
|
|
|
|
|
mNpdt12.mLevel = 0;
|
|
|
|
|
mNpdt12.mDisposition = 0;
|
|
|
|
|
mNpdt12.mReputation = 0;
|
|
|
|
|
mNpdt12.mRank = 0;
|
|
|
|
|
mNpdt12.mUnknown1 = 0;
|
|
|
|
|
mNpdt12.mUnknown2 = 0;
|
|
|
|
|
mNpdt12.mUnknown3 = 0;
|
|
|
|
|
mNpdt12.mGold = 0;
|
|
|
|
|
mFlags = 0;
|
|
|
|
|
mInventory.mList.clear();
|
|
|
|
|
mSpells.mList.clear();
|
|
|
|
|
mAiData.blank();
|
|
|
|
|
mHasAI = false;
|
|
|
|
|
mTransport.clear();
|
|
|
|
|
mAiPackage.mList.clear();
|
|
|
|
|
mName.clear();
|
|
|
|
|
mModel.clear();
|
|
|
|
|
mRace.clear();
|
|
|
|
|
mClass.clear();
|
|
|
|
|
mFaction.clear();
|
|
|
|
|
mScript.clear();
|
|
|
|
|
mHair.clear();
|
|
|
|
|
mHead.clear();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|