diff --git a/src/engine/ConfigParsing/EffectEntry/EffectModifier.java b/src/engine/ConfigParsing/EffectEntry/EffectModifier.java index 48bf5082..7da66495 100644 --- a/src/engine/ConfigParsing/EffectEntry/EffectModifier.java +++ b/src/engine/ConfigParsing/EffectEntry/EffectModifier.java @@ -4,8 +4,8 @@ import engine.mbEnums; public class EffectModifier { public mbEnums.ModType type; - public int min; - public int max; + public float min; + public float max; public float scale; public mbEnums.CompoundCurveType compoundCurveType; public String arg1; // ItemName "Masterwork" "" diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index 303164ce..b8bbe467 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -132,14 +132,14 @@ public class EffectsParser { switch (effectModifier.type) { case AnimOverride: - effectModifier.min = Integer.parseInt(modValues.get(1).trim()); - effectModifier.max = Integer.parseInt(modValues.get(2).trim()); + effectModifier.min = Float.parseFloat(modValues.get(1).trim()); + effectModifier.max = Float.parseFloat(modValues.get(2).trim()); break; case Health: case Mana: case Stamina: - effectModifier.min = Integer.parseInt(modValues.get(1).trim()); - effectModifier.max = Integer.parseInt(modValues.get(2).trim()); + effectModifier.min = Float.parseFloat(modValues.get(1).trim()); + effectModifier.max = Float.parseFloat(modValues.get(2).trim()); effectModifier.scale = Float.parseFloat(modValues.get(3).trim()); // Parameter 4 is always 0. effectModifier.compoundCurveType = mbEnums.CompoundCurveType.valueOf(modValues.get(5).trim()); @@ -153,7 +153,7 @@ public class EffectsParser { case StaminaRecoverRate: case DamageShield: case HealthFull: - effectModifier.min = Integer.parseInt(modValues.get(1).trim()); + 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()); effectModifier.arg1 = modValues.get(4).trim(); @@ -175,7 +175,7 @@ public class EffectsParser { case PowerDamageModifier: case DR: case PassiveDefense: - effectModifier.min = Integer.parseInt(modValues.get(1).trim()); + 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()); break;