mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-20 01:39:40 +00:00
Fix maximum magicka calculation (Fixes #1795)
This commit is contained in:
parent
fc1687906b
commit
8866b5f860
1 changed files with 2 additions and 2 deletions
|
@ -374,10 +374,10 @@ namespace MWMechanics
|
|||
int endurance = creatureStats.getAttribute(ESM::Attribute::Endurance).getModified();
|
||||
|
||||
double magickaFactor =
|
||||
creatureStats.getMagicEffects().get (EffectKey (ESM::MagicEffect::FortifyMaximumMagicka)).mMagnitude * 0.1 + 0.5;
|
||||
creatureStats.getMagicEffects().get (EffectKey (ESM::MagicEffect::FortifyMaximumMagicka)).mMagnitude * 0.1 + 1;
|
||||
|
||||
DynamicStat<float> magicka = creatureStats.getMagicka();
|
||||
float diff = (static_cast<int>(intelligence + magickaFactor*intelligence)) - magicka.getBase();
|
||||
float diff = (static_cast<int>(magickaFactor*intelligence)) - magicka.getBase();
|
||||
magicka.modify(diff);
|
||||
creatureStats.setMagicka(magicka);
|
||||
|
||||
|
|
Loading…
Reference in a new issue