From 585f984554c9b674f0b523e402f25747c602434c Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 22 Aug 2024 15:52:28 -0400 Subject: [PATCH] Separate group for min/max --- src/engine/wpak/EffectsParser.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/wpak/EffectsParser.java b/src/engine/wpak/EffectsParser.java index 9c653c70..4244d921 100644 --- a/src/engine/wpak/EffectsParser.java +++ b/src/engine/wpak/EffectsParser.java @@ -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());