Browse Source

More effectmod parser work.

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

Loading…
Cancel
Save