Browse Source

More effectmod parser work.

feature-config-parsing2
MagicBot 3 months ago
parent
commit
000ccdaf0a
  1. 6
      src/engine/ConfigParsing/EffectsParser.java

6
src/engine/ConfigParsing/EffectsParser.java

@ -150,6 +150,8 @@ public class EffectsParser { @@ -150,6 +150,8 @@ public class EffectsParser {
case HealthRecoverRate:
case ManaRecoverRate:
case StaminaRecoverRate:
case DamageShield:
case HealthFull:
effectModifier.min = Integer.parseInt(modValues.get(1).trim());
effectModifier.scale = Float.parseFloat(modValues.get(2).trim());
effectModifier.compoundCurveType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim());
@ -159,6 +161,7 @@ public class EffectsParser { @@ -159,6 +161,7 @@ public class EffectsParser {
case CannotCast:
case ImmuneToAttack:
case ImmuneToPowers:
case Ambidexterity:
break;
case MeleeDamageModifier:
case OCV:
@ -175,10 +178,13 @@ public class EffectsParser { @@ -175,10 +178,13 @@ public class EffectsParser {
break;
case ItemName:
case BlockedPowerType:
case ImmuneTo:
case BlackMantle:
effectModifier.arg1 = modValues.get(1).trim();
effectModifier.arg2 = modValues.get(2).trim();
break;
case NoMod:
case ConstrainedAmbidexterity:
effectModifier.arg1 = modValues.get(1).trim();
break;
default:

Loading…
Cancel
Save