Browse Source

Effect Modifier parsing work.

feature-config-parsing2
MagicBot 5 months ago
parent
commit
789d9a3bb6
  1. 2
      src/engine/ConfigParsing/EffectEntry/EffectModifier.java
  2. 5
      src/engine/ConfigParsing/EffectsParser.java

2
src/engine/ConfigParsing/EffectEntry/EffectModifier.java

@ -7,6 +7,6 @@ public class EffectModifier {
public int min; public int min;
public int max; public int max;
public float scale; public float scale;
public String slopeType; public mbEnums.CompoundCurveType slopeType;
public String target; public String target;
} }

5
src/engine/ConfigParsing/EffectsParser.java

@ -131,6 +131,11 @@ public class EffectsParser {
effectModifier.min = Integer.parseInt(modValues.get(1).trim()); effectModifier.min = Integer.parseInt(modValues.get(1).trim());
effectModifier.max = Integer.parseInt(modValues.get(2).trim()); effectModifier.max = Integer.parseInt(modValues.get(2).trim());
break; break;
case BladeTrails:
break;
case MeleeDamageModifier:
effectModifier.scale = Float.parseFloat(modValues.get(2).trim());
effectModifier.slopeType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim());
default: default:
Logger.error("Unhandled type: " + effectModifier.type); Logger.error("Unhandled type: " + effectModifier.type);
break; break;

Loading…
Cancel
Save