Browse Source

More effectmod parser work.

feature-config-parsing2
MagicBot 3 months ago
parent
commit
260bc453d1
  1. 2
      src/engine/ConfigParsing/EffectsParser.java

2
src/engine/ConfigParsing/EffectsParser.java

@ -140,6 +140,7 @@ public class EffectsParser {
case IgnorePassiveDefense: case IgnorePassiveDefense:
case Stunned: case Stunned:
case CannotMove: case CannotMove:
case PowerCostHealth:
break; break;
case AnimOverride: case AnimOverride:
effectModifier.min = Float.parseFloat(modValues.get(1).trim()); effectModifier.min = Float.parseFloat(modValues.get(1).trim());
@ -185,6 +186,7 @@ public class EffectsParser {
case Value: case Value:
case WeaponSpeed: case WeaponSpeed:
case MinDamage: case MinDamage:
case PowerCost:
effectModifier.min = Float.parseFloat(modValues.get(1).trim()); effectModifier.min = Float.parseFloat(modValues.get(1).trim());
effectModifier.scale = Float.parseFloat(modValues.get(2).trim()); effectModifier.scale = Float.parseFloat(modValues.get(2).trim());
effectModifier.compoundCurveType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim()); effectModifier.compoundCurveType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim());

Loading…
Cancel
Save