mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 13:23:52 +00:00
Issue #407: Fortyfy attribute effects were ignored for the last 3 attributes
This commit is contained in:
parent
18686614db
commit
3f833af46a
1 changed files with 1 additions and 5 deletions
|
@ -118,18 +118,14 @@ namespace MWMechanics
|
||||||
+ fRestMagicMult * stats.getAttribute(ESM::Attribute::Intelligence).getModified ());
|
+ fRestMagicMult * stats.getAttribute(ESM::Attribute::Intelligence).getModified ());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Actors::calculateCreatureStatModifiers (const MWWorld::Ptr& ptr)
|
void Actors::calculateCreatureStatModifiers (const MWWorld::Ptr& ptr)
|
||||||
{
|
{
|
||||||
CreatureStats& creatureStats = MWWorld::Class::get (ptr).getCreatureStats (ptr);
|
CreatureStats& creatureStats = MWWorld::Class::get (ptr).getCreatureStats (ptr);
|
||||||
|
|
||||||
// attributes
|
// attributes
|
||||||
for (int i=0; i<5; ++i)
|
for (int i=0; i<8; ++i)
|
||||||
{
|
{
|
||||||
int modifier =
|
int modifier =
|
||||||
creatureStats.getMagicEffects().get (EffectKey (79, i)).mMagnitude;
|
creatureStats.getMagicEffects().get (EffectKey (79, i)).mMagnitude;
|
||||||
|
|
Loading…
Reference in a new issue