Code cleanup: use enum instead of integer

This commit is contained in:
scrawl 2013-11-10 15:28:26 +01:00
parent 5c148a3d41
commit 71828351e6

View file

@ -164,11 +164,13 @@ namespace MWMechanics
for(int i = 0;i < 3;++i)
{
DynamicStat<float> stat = creatureStats.getDynamic(i);
stat.setModifier(effects.get(EffectKey(80+i)).mMagnitude -
effects.get(EffectKey(18+i)).mMagnitude);
stat.setModifier(effects.get(EffectKey(ESM::MagicEffect::FortifyHealth+i)).mMagnitude -
effects.get(EffectKey(ESM::MagicEffect::DrainHealth+i)).mMagnitude);
creatureStats.setDynamic(i, stat);
}
}
void Actors::calculateNpcStatModifiers (const MWWorld::Ptr& ptr)