Browse Source

Effect Modifier parsing work.

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

5
src/engine/ConfigParsing/EffectsParser.java

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

Loading…
Cancel
Save