From 789d9a3bb6d26d2179114136f0b3805cf80cc96c Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 10 Aug 2024 18:23:40 -0400 Subject: [PATCH] Effect Modifier parsing work. --- src/engine/ConfigParsing/EffectEntry/EffectModifier.java | 2 +- src/engine/ConfigParsing/EffectsParser.java | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/engine/ConfigParsing/EffectEntry/EffectModifier.java b/src/engine/ConfigParsing/EffectEntry/EffectModifier.java index 20fc35b6..b931f737 100644 --- a/src/engine/ConfigParsing/EffectEntry/EffectModifier.java +++ b/src/engine/ConfigParsing/EffectEntry/EffectModifier.java @@ -7,6 +7,6 @@ public class EffectModifier { public int min; public int max; public float scale; - public String slopeType; + public mbEnums.CompoundCurveType slopeType; public String target; } diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index fc625fd0..8df1d684 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -131,6 +131,11 @@ public class EffectsParser { effectModifier.min = Integer.parseInt(modValues.get(1).trim()); effectModifier.max = Integer.parseInt(modValues.get(2).trim()); break; + case BladeTrails: + break; + case MeleeDamageModifier: + 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;