|
|
|
@ -470,13 +470,13 @@ namespace MWMechanics
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
MWMechanics::CreatureStats& stats = ptr.getClass().getCreatureStats (ptr);
|
|
|
|
|
const MWWorld::Store<ESM::GameSetting>& settings = MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>();
|
|
|
|
|
|
|
|
|
|
int endurance = stats.getAttribute (ESM::Attribute::Endurance).getModified ();
|
|
|
|
|
|
|
|
|
|
// restore fatigue
|
|
|
|
|
float fFatigueReturnBase = settings.find("fFatigueReturnBase")->getFloat ();
|
|
|
|
|
float fFatigueReturnMult = settings.find("fFatigueReturnMult")->getFloat ();
|
|
|
|
|
const MWWorld::Store<ESM::GameSetting>& settings = MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>();
|
|
|
|
|
static float fFatigueReturnBase = settings.find("fFatigueReturnBase")->getFloat ();
|
|
|
|
|
static float fFatigueReturnMult = settings.find("fFatigueReturnMult")->getFloat ();
|
|
|
|
|
|
|
|
|
|
float x = fFatigueReturnBase + fFatigueReturnMult * endurance;
|
|
|
|
|
|
|
|
|
|