Browse Source

Separate group for min/max

feature-config-parsing2
MagicBot 3 months ago
parent
commit
585f984554
  1. 6
      src/engine/wpak/EffectsParser.java

6
src/engine/wpak/EffectsParser.java

@ -236,10 +236,14 @@ public class EffectsParser { @@ -236,10 +236,14 @@ public class EffectsParser {
case Block:
case Parry:
case Dodge:
case WeaponRange:
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 ScaleWidth:
case WeaponRange:
effectModifier.min = Float.parseFloat(modValues.get(1).trim());
effectModifier.scale = Float.parseFloat(modValues.get(2).trim());
effectModifier.compoundCurveType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim());

Loading…
Cancel
Save