From e729bc9541434cd4e771152232bf585e4ffd565d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 11 Aug 2024 12:44:54 -0400 Subject: [PATCH] More effectmod parser work. --- src/engine/ConfigParsing/EffectEntry/EffectModifier.java | 4 +++- src/engine/ConfigParsing/EffectsParser.java | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/engine/ConfigParsing/EffectEntry/EffectModifier.java b/src/engine/ConfigParsing/EffectEntry/EffectModifier.java index b931f737..20719dfc 100644 --- a/src/engine/ConfigParsing/EffectEntry/EffectModifier.java +++ b/src/engine/ConfigParsing/EffectEntry/EffectModifier.java @@ -8,5 +8,7 @@ public class EffectModifier { public int max; public float scale; public mbEnums.CompoundCurveType slopeType; - public String target; + public String arg1; // ItemName "Masterwork" "" + public String arg2; // ItemName "" "of the Defender" + } diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index 9bcd9438..2ef6f9a4 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -136,6 +136,10 @@ public class EffectsParser { case MeleeDamageModifier: case OCV: case DCV: + case AttackDelay: + case AdjustAboveDmgCap: + case DamageCap: + case ArmorPiercing: effectModifier.min = Integer.parseInt(modValues.get(1).trim()); effectModifier.scale = Float.parseFloat(modValues.get(2).trim()); effectModifier.slopeType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim());