Browse Source

Effect Modifier parsing work.

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

6
src/engine/ConfigParsing/EffectsParser.java

@ -136,6 +136,12 @@ public class EffectsParser { @@ -136,6 +136,12 @@ public class EffectsParser {
case MeleeDamageModifier:
effectModifier.scale = Float.parseFloat(modValues.get(2).trim());
effectModifier.slopeType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim());
case OCV:
effectModifier.scale = Float.parseFloat(modValues.get(2).trim());
effectModifier.slopeType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim());
case DCV:
effectModifier.scale = Float.parseFloat(modValues.get(2).trim());
effectModifier.slopeType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim());
default:
Logger.error("Unhandled type: " + effectModifier.type);
break;

Loading…
Cancel
Save