From f36c980eb951072363b5f8122923c4547d3ed9a2 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 11 Aug 2024 17:07:56 -0400 Subject: [PATCH] More effectmod parser work. --- src/engine/ConfigParsing/EffectEntry/EffectModifier.java | 2 +- src/engine/ConfigParsing/EffectsParser.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/ConfigParsing/EffectEntry/EffectModifier.java b/src/engine/ConfigParsing/EffectEntry/EffectModifier.java index 20719dfc..48bf5082 100644 --- a/src/engine/ConfigParsing/EffectEntry/EffectModifier.java +++ b/src/engine/ConfigParsing/EffectEntry/EffectModifier.java @@ -7,7 +7,7 @@ public class EffectModifier { public int min; public int max; public float scale; - public mbEnums.CompoundCurveType slopeType; + public mbEnums.CompoundCurveType compoundCurveType; 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 734e853c..0c781b0e 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -142,7 +142,7 @@ public class EffectsParser { 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()); + effectModifier.compoundCurveType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim()); break; case ItemName: effectModifier.arg1 = modValues.get(1).trim(); @@ -151,7 +151,7 @@ public class EffectsParser { 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.compoundCurveType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim()); effectModifier.arg1 = modValues.get(4).trim(); break; default: