From a028bebafd3bdeee465f35e8da94dca1a90e548d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 10 Aug 2024 18:27:17 -0400 Subject: [PATCH] Effect Modifier parsing work. --- src/engine/ConfigParsing/EffectsParser.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index 8df1d684..a5c443b4 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -136,6 +136,12 @@ public class EffectsParser { 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()); default: Logger.error("Unhandled type: " + effectModifier.type); break;