Effect Modifier parsing work.

This commit is contained in:
2024-08-10 18:23:40 -04:00
parent 8e19b66a9b
commit 789d9a3bb6
2 changed files with 6 additions and 1 deletions
@@ -7,6 +7,6 @@ public class EffectModifier {
public int min;
public int max;
public float scale;
public String slopeType;
public mbEnums.CompoundCurveType slopeType;
public String target;
}
@@ -131,6 +131,11 @@ public class EffectsParser {
effectModifier.min = Integer.parseInt(modValues.get(1).trim());
effectModifier.max = Integer.parseInt(modValues.get(2).trim());
break;
case BladeTrails:
break;
case MeleeDamageModifier:
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;