1
0
Fork 1
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:
Marc Zinnschlag 2012-10-19 10:07:27 +02:00
parent 18686614db
commit 3f833af46a

View file

@ -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;