Separate group for min/max

This commit is contained in:
2024-08-22 15:52:28 -04:00
parent 7125e9b360
commit 585f984554
+5 -1
View File
@@ -236,10 +236,14 @@ public class EffectsParser {
case Block: case Block:
case Parry: case Parry:
case Dodge: case Dodge:
case WeaponRange:
case ScanRange: case ScanRange:
effectModifier.min = Float.parseFloat(modValues.get(1).trim());
effectModifier.max = Float.parseFloat(modValues.get(2).trim());
effectModifier.compoundCurveType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim());
break;
case ScaleHeight: case ScaleHeight:
case ScaleWidth: case ScaleWidth:
case WeaponRange:
effectModifier.min = Float.parseFloat(modValues.get(1).trim()); effectModifier.min = Float.parseFloat(modValues.get(1).trim());
effectModifier.scale = Float.parseFloat(modValues.get(2).trim()); effectModifier.scale = Float.parseFloat(modValues.get(2).trim());
effectModifier.compoundCurveType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim()); effectModifier.compoundCurveType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim());