From cb1a7f014d3feec908416a63c882f439f50ce3a3 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 11 Aug 2024 12:48:56 -0400 Subject: [PATCH] More effectmod parser work. --- src/engine/ConfigParsing/EffectsParser.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index 2ef6f9a4..734e853c 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -144,6 +144,16 @@ public class EffectsParser { effectModifier.scale = Float.parseFloat(modValues.get(2).trim()); effectModifier.slopeType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim()); break; + case ItemName: + 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.slopeType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim()); + effectModifier.arg1 = modValues.get(4).trim(); + break; default: Logger.error("Unhandled type: " + effectModifier.type); break;