Browse Source

More effectmod parser work.

feature-config-parsing2
MagicBot 3 months ago
parent
commit
5a619db9bd
  1. 4
      src/engine/ConfigParsing/EffectsParser.java

4
src/engine/ConfigParsing/EffectsParser.java

@ -137,6 +137,9 @@ public class EffectsParser {
case ImmuneToPowers: case ImmuneToPowers:
case Ambidexterity: case Ambidexterity:
case Silenced: case Silenced:
case IgnorePassiveDefense:
case Stunned:
case CannotMove:
break; break;
case AnimOverride: case AnimOverride:
effectModifier.min = Float.parseFloat(modValues.get(1).trim()); effectModifier.min = Float.parseFloat(modValues.get(1).trim());
@ -181,6 +184,7 @@ public class EffectsParser {
case MaxDamage: case MaxDamage:
case Value: case Value:
case WeaponSpeed: case WeaponSpeed:
case MinDamage:
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