From aa957f41af89fa9093c6358f4507d9dd79f3f882 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 12 Aug 2024 10:02:24 -0400 Subject: [PATCH] More effectmod parser 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 32bdc62e..9f59b5d8 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -179,6 +179,7 @@ public class EffectsParser { case PassiveDefense: case MaxDamage: case Value: + case WeaponSpeed: effectModifier.min = Float.parseFloat(modValues.get(1).trim()); effectModifier.scale = Float.parseFloat(modValues.get(2).trim()); effectModifier.compoundCurveType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim()); @@ -194,6 +195,11 @@ public class EffectsParser { case ConstrainedAmbidexterity: effectModifier.arg1 = modValues.get(1).trim(); break; + case WeaponProc: + effectModifier.min = Float.parseFloat(modValues.get(1).trim()); + effectModifier.arg1 = modValues.get(2).trim(); + effectModifier.scale = Float.parseFloat(modValues.get(3).trim()); + break; default: Logger.error("Unhandled type: " + effectModifier.type); break;