1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 23:23:52 +00:00

Consider Shield spell effect for creature armor rating

This commit is contained in:
scrawl 2014-07-20 14:41:39 +02:00
parent 691ba02115
commit 5bbf07976f

View file

@ -637,8 +637,7 @@ namespace MWClass
float Creature::getArmorRating (const MWWorld::Ptr& ptr) const float Creature::getArmorRating (const MWWorld::Ptr& ptr) const
{ {
/// \todo add Shield magic effect magnitude here, controlled by a GMST (Vanilla vs MCP behaviour) return getCreatureStats(ptr).getMagicEffects().get(ESM::MagicEffect::Shield).mMagnitude;
return 0.f;
} }
float Creature::getCapacity (const MWWorld::Ptr& ptr) const float Creature::getCapacity (const MWWorld::Ptr& ptr) const