forked from mirror/openmw-tes3mp
added bounty to NpcStats
This commit is contained in:
parent
90e679746b
commit
39ff2f06ce
2 changed files with 16 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
||||||
#include "../mwbase/soundmanager.hpp"
|
#include "../mwbase/soundmanager.hpp"
|
||||||
|
|
||||||
MWMechanics::NpcStats::NpcStats()
|
MWMechanics::NpcStats::NpcStats()
|
||||||
: mMovementFlags (0), mDrawState (DrawState_Nothing)
|
: mMovementFlags (0), mDrawState (DrawState_Nothing), mBounty (0)
|
||||||
, mLevelProgress(0)
|
, mLevelProgress(0)
|
||||||
{
|
{
|
||||||
mSkillIncreases.resize (ESM::Attribute::Length);
|
mSkillIncreases.resize (ESM::Attribute::Length);
|
||||||
|
@ -238,3 +238,13 @@ bool MWMechanics::NpcStats::hasBeenUsed (const std::string& id) const
|
||||||
{
|
{
|
||||||
return mUsedIds.find (id)!=mUsedIds.end();
|
return mUsedIds.find (id)!=mUsedIds.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int MWMechanics::NpcStats::getBounty() const
|
||||||
|
{
|
||||||
|
return mBounty;
|
||||||
|
}
|
||||||
|
|
||||||
|
void MWMechanics::NpcStats::setBounty (int bounty)
|
||||||
|
{
|
||||||
|
mBounty = bounty;
|
||||||
|
}
|
||||||
|
|
|
@ -45,6 +45,7 @@ namespace MWMechanics
|
||||||
DrawState_ mDrawState;
|
DrawState_ mDrawState;
|
||||||
unsigned int mMovementFlags;
|
unsigned int mMovementFlags;
|
||||||
Stat<float> mSkill[27];
|
Stat<float> mSkill[27];
|
||||||
|
int mBounty;
|
||||||
|
|
||||||
int mLevelProgress; // 0-10
|
int mLevelProgress; // 0-10
|
||||||
|
|
||||||
|
@ -92,6 +93,10 @@ namespace MWMechanics
|
||||||
void flagAsUsed (const std::string& id);
|
void flagAsUsed (const std::string& id);
|
||||||
|
|
||||||
bool hasBeenUsed (const std::string& id) const;
|
bool hasBeenUsed (const std::string& id) const;
|
||||||
|
|
||||||
|
int getBounty() const;
|
||||||
|
|
||||||
|
void setBounty (int bounty);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue