Browse Source

More effectmod parser work.

feature-config-parsing2
MagicBot 5 months ago
parent
commit
d6c49d0793
  1. 6
      src/engine/ConfigParsing/EffectsParser.java

6
src/engine/ConfigParsing/EffectsParser.java

@ -144,6 +144,9 @@ public class EffectsParser {
case Attr: case Attr:
case Resistance: case Resistance:
case Skill: case Skill:
case HealthRecoverRate:
case ManaRecoverRate:
case StaminaRecoverRate:
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());
@ -151,6 +154,8 @@ public class EffectsParser {
break; break;
case BladeTrails: case BladeTrails:
case CannotCast: case CannotCast:
case ImmuneToAttack:
case ImmuneToPowers:
break; break;
case MeleeDamageModifier: case MeleeDamageModifier:
case OCV: case OCV:
@ -160,6 +165,7 @@ public class EffectsParser {
case DamageCap: case DamageCap:
case ArmorPiercing: case ArmorPiercing:
case Speed: case Speed:
case PowerDamageModifier:
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