forked from mirror/openmw-tes3mp
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.
This commit is contained in:
parent
6ab7002908
commit
296b2ab870
2 changed files with 11 additions and 2 deletions
|
@ -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…
Reference in a new issue