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 {
case HealthRecoverRate: case HealthRecoverRate:
case ManaRecoverRate: case ManaRecoverRate:
case StaminaRecoverRate: case StaminaRecoverRate:
case DamageShield:
case HealthFull:
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());
@ -159,6 +161,7 @@ public class EffectsParser {
case CannotCast: case CannotCast:
case ImmuneToAttack: case ImmuneToAttack:
case ImmuneToPowers: case ImmuneToPowers:
case Ambidexterity:
break; break;
case MeleeDamageModifier: case MeleeDamageModifier:
case OCV: case OCV:
@ -175,10 +178,13 @@ public class EffectsParser {
break; break;
case ItemName: case ItemName:
case BlockedPowerType: case BlockedPowerType:
case ImmuneTo:
case BlackMantle:
effectModifier.arg1 = modValues.get(1).trim(); effectModifier.arg1 = modValues.get(1).trim();
effectModifier.arg2 = modValues.get(2).trim(); effectModifier.arg2 = modValues.get(2).trim();
break; break;
case NoMod: case NoMod:
case ConstrainedAmbidexterity:
effectModifier.arg1 = modValues.get(1).trim(); effectModifier.arg1 = modValues.get(1).trim();
break; break;
default: default:

Loading…
Cancel
Save