Browse Source

More effectmod parser work.

feature-config-parsing2
MagicBot 4 months ago
parent
commit
56686944af
  1. 12
      src/engine/ConfigParsing/EffectsParser.java

12
src/engine/ConfigParsing/EffectsParser.java

@ -131,6 +131,12 @@ public class EffectsParser { @@ -131,6 +131,12 @@ public class EffectsParser {
effectModifier.type = mbEnums.ModType.valueOf(modValues.get(0).trim());
switch (effectModifier.type) {
case BladeTrails: // No parm modifiers
case CannotCast:
case ImmuneToAttack:
case ImmuneToPowers:
case Ambidexterity:
break;
case AnimOverride:
effectModifier.min = Float.parseFloat(modValues.get(1).trim());
effectModifier.max = Float.parseFloat(modValues.get(2).trim());
@ -160,12 +166,6 @@ public class EffectsParser { @@ -160,12 +166,6 @@ public class EffectsParser {
effectModifier.compoundCurveType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim());
effectModifier.arg1 = modValues.get(4).trim();
break;
case BladeTrails:
case CannotCast:
case ImmuneToAttack:
case ImmuneToPowers:
case Ambidexterity:
break;
case MeleeDamageModifier:
case OCV:
case DCV:

Loading…
Cancel
Save