Browse Source

More effectmod parser work.

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

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

@ -8,5 +8,7 @@ public class EffectModifier {
public int max; public int max;
public float scale; public float scale;
public mbEnums.CompoundCurveType slopeType; public mbEnums.CompoundCurveType slopeType;
public String target; public String arg1; // ItemName "Masterwork" ""
public String arg2; // ItemName "" "of the Defender"
} }

4
src/engine/ConfigParsing/EffectsParser.java

@ -136,6 +136,10 @@ public class EffectsParser {
case MeleeDamageModifier: case MeleeDamageModifier:
case OCV: case OCV:
case DCV: case DCV:
case AttackDelay:
case AdjustAboveDmgCap:
case DamageCap:
case ArmorPiercing:
effectModifier.min = Integer.parseInt(modValues.get(1).trim()); effectModifier.min = Integer.parseInt(modValues.get(1).trim());
effectModifier.scale = Float.parseFloat(modValues.get(2).trim()); effectModifier.scale = Float.parseFloat(modValues.get(2).trim());
effectModifier.slopeType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim()); effectModifier.slopeType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim());

Loading…
Cancel
Save