mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-13 12:40:04 +00:00
added bounty to NpcStats
This commit is contained in:
parent
90e679746b
commit
39ff2f06ce
@ -18,7 +18,7 @@
|
||||
#include "../mwbase/soundmanager.hpp"
|
||||
|
||||
MWMechanics::NpcStats::NpcStats()
|
||||
: mMovementFlags (0), mDrawState (DrawState_Nothing)
|
||||
: mMovementFlags (0), mDrawState (DrawState_Nothing), mBounty (0)
|
||||
, mLevelProgress(0)
|
||||
{
|
||||
mSkillIncreases.resize (ESM::Attribute::Length);
|
||||
@ -238,3 +238,13 @@ bool MWMechanics::NpcStats::hasBeenUsed (const std::string& id) const
|
||||
{
|
||||
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;
|
||||
unsigned int mMovementFlags;
|
||||
Stat<float> mSkill[27];
|
||||
int mBounty;
|
||||
|
||||
int mLevelProgress; // 0-10
|
||||
|
||||
@ -92,6 +93,10 @@ namespace MWMechanics
|
||||
void flagAsUsed (const std::string& id);
|
||||
|
||||
bool hasBeenUsed (const std::string& id) const;
|
||||
|
||||
int getBounty() const;
|
||||
|
||||
void setBounty (int bounty);
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user