Browse Source

More effectmod parser work.

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

6
src/engine/ConfigParsing/EffectsParser.java

@ -179,6 +179,7 @@ public class EffectsParser { @@ -179,6 +179,7 @@ public class EffectsParser {
case PassiveDefense:
case MaxDamage:
case Value:
case WeaponSpeed:
effectModifier.min = Float.parseFloat(modValues.get(1).trim());
effectModifier.scale = Float.parseFloat(modValues.get(2).trim());
effectModifier.compoundCurveType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim());
@ -194,6 +195,11 @@ public class EffectsParser { @@ -194,6 +195,11 @@ public class EffectsParser {
case ConstrainedAmbidexterity:
effectModifier.arg1 = modValues.get(1).trim();
break;
case WeaponProc:
effectModifier.min = Float.parseFloat(modValues.get(1).trim());
effectModifier.arg1 = modValues.get(2).trim();
effectModifier.scale = Float.parseFloat(modValues.get(3).trim());
break;
default:
Logger.error("Unhandled type: " + effectModifier.type);
break;

Loading…
Cancel
Save