1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-18 18:40:06 +00:00

Handle iWereWolfBounty

This commit is contained in:
scrawl 2014-01-22 12:33:47 +01:00
parent 194413c955
commit 264226dfe3

View File

@ -267,12 +267,16 @@ bool MWMechanics::NpcStats::hasBeenUsed (const std::string& id) const
int MWMechanics::NpcStats::getBounty() const int MWMechanics::NpcStats::getBounty() const
{ {
return mBounty; if (mIsWerewolf)
return MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>().find("iWereWolfBounty")->getInt();
else
return mBounty;
} }
void MWMechanics::NpcStats::setBounty (int bounty) void MWMechanics::NpcStats::setBounty (int bounty)
{ {
mBounty = bounty; if (!mIsWerewolf)
mBounty = bounty;
} }
int MWMechanics::NpcStats::getFactionReputation (const std::string& faction) const int MWMechanics::NpcStats::getFactionReputation (const std::string& faction) const