Magic Effect: Recognize other display types.

Fill out the list of effects which use percentage formatting.
Add in types which use Feet and level labels.
actorid
Jordan Ayers 11 years ago
parent 6ab7002908
commit 296b2ab870

@ -279,8 +279,15 @@ MagicEffect::MagnitudeDisplayType MagicEffect::getMagnitudeDisplayType() const {
return MDT_None;
if ( mIndex == 84 )
return MDT_TimesInt;
if ( mIndex == 59 ||
( mIndex >= 64 && mIndex <= 66) )
return MDT_Feet;
if ( mIndex == 118 || mIndex == 119 )
return MDT_Level;
if ( ( mIndex >= 28 && mIndex <= 36 )
|| ( mIndex >= 90 && mIndex <= 99 ) )
|| ( mIndex >= 90 && mIndex <= 99 )
|| mIndex == 40 || mIndex == 47
|| mIndex == 57 || mIndex == 68 )
return MDT_Percentage;
return MDT_Points;

@ -35,8 +35,10 @@ struct MagicEffect
enum MagnitudeDisplayType
{
MDT_None,
MDT_Points,
MDT_Feet,
MDT_Level,
MDT_Percentage,
MDT_Points,
MDT_TimesInt
};

Loading…
Cancel
Save