Browse Source

More effectmod parser work.

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

2
src/engine/ConfigParsing/EffectsParser.java

@ -150,6 +150,7 @@ public class EffectsParser {
effectModifier.arg1 = modValues.get(4).trim(); effectModifier.arg1 = modValues.get(4).trim();
break; break;
case BladeTrails: case BladeTrails:
case CannotCast:
break; break;
case MeleeDamageModifier: case MeleeDamageModifier:
case OCV: case OCV:
@ -158,6 +159,7 @@ public class EffectsParser {
case AdjustAboveDmgCap: case AdjustAboveDmgCap:
case DamageCap: case DamageCap:
case ArmorPiercing: case ArmorPiercing:
case Speed:
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.compoundCurveType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim()); effectModifier.compoundCurveType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim());

Loading…
Cancel
Save