From 821b7264eca877eef1972239e892a5394076dd6e Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 10 Aug 2024 18:50:28 -0400 Subject: [PATCH] Effect Modifier parsing work. --- src/engine/ConfigParsing/EffectsParser.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index 1a153f91..e0a0cd6a 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -137,14 +137,11 @@ public class EffectsParser { case BladeTrails: break; case MeleeDamageModifier: - effectModifier.scale = Float.parseFloat(modValues.get(2).trim()); - effectModifier.slopeType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim()); case OCV: - effectModifier.scale = Float.parseFloat(modValues.get(2).trim()); - effectModifier.slopeType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim()); case DCV: effectModifier.scale = Float.parseFloat(modValues.get(2).trim()); effectModifier.slopeType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim()); + break; default: Logger.error("Unhandled type: " + effectModifier.type); break;