forked from teamnwah/openmw-tes3coop
Fix another fatigue cap issue
This commit is contained in:
parent
224f288359
commit
dddc0979a2
1 changed files with 1 additions and 1 deletions
|
@ -437,7 +437,7 @@ namespace MWMechanics
|
|||
DynamicStat<float> fatigue = stats.getFatigue();
|
||||
const float normalizedEncumbrance = mCaster.getClass().getEncumbrance(mCaster) / mCaster.getClass().getCapacity(mCaster);
|
||||
float fatigueLoss = spell->mData.mCost * (fFatigueSpellBase + normalizedEncumbrance * fFatigueSpellMult);
|
||||
fatigue.setCurrent(std::max(0.f, fatigue.getCurrent() - fatigueLoss));
|
||||
fatigue.setCurrent(fatigue.getCurrent() - fatigueLoss);
|
||||
stats.setFatigue(fatigue);
|
||||
|
||||
bool fail = false;
|
||||
|
|
Loading…
Reference in a new issue