Browse Source

More effectmod parser work.

feature-config-parsing2
MagicBot 3 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 {
case PassiveDefense: case PassiveDefense:
case MaxDamage: case MaxDamage:
case Value: case Value:
case WeaponSpeed:
effectModifier.min = Float.parseFloat(modValues.get(1).trim()); effectModifier.min = Float.parseFloat(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());
@ -194,6 +195,11 @@ public class EffectsParser {
case ConstrainedAmbidexterity: case ConstrainedAmbidexterity:
effectModifier.arg1 = modValues.get(1).trim(); effectModifier.arg1 = modValues.get(1).trim();
break; 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: default:
Logger.error("Unhandled type: " + effectModifier.type); Logger.error("Unhandled type: " + effectModifier.type);
break; break;

Loading…
Cancel
Save