From 0ceea002d55c016fa9e544f7f3234105e17469e6 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 12 Aug 2024 08:52:24 -0400 Subject: [PATCH] More effectmod parser work. --- src/engine/ConfigParsing/EffectsParser.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index 893663e2..8da321c2 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -133,6 +133,8 @@ public class EffectsParser { effectModifier.max = Integer.parseInt(modValues.get(2).trim()); break; case Attr: + case Resistance: + case Skill: effectModifier.min = Integer.parseInt(modValues.get(1).trim()); effectModifier.scale = Float.parseFloat(modValues.get(2).trim()); effectModifier.compoundCurveType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim()); @@ -155,12 +157,6 @@ public class EffectsParser { effectModifier.arg1 = modValues.get(1).trim(); effectModifier.arg2 = modValues.get(2).trim(); break; - case Skill: - effectModifier.min = Integer.parseInt(modValues.get(1).trim()); - effectModifier.max = Integer.parseInt(modValues.get(2).trim()); - effectModifier.compoundCurveType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim()); - effectModifier.arg1 = modValues.get(4).trim(); - break; default: Logger.error("Unhandled type: " + effectModifier.type); break;