Browse Source

Effect Modifier parsing work.

feature-config-parsing2
MagicBot 3 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 {
case MeleeDamageModifier: case MeleeDamageModifier:
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());
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: default:
Logger.error("Unhandled type: " + effectModifier.type); Logger.error("Unhandled type: " + effectModifier.type);
break; break;

Loading…
Cancel
Save