Browse Source

More poweraction parsing work.

feature-config-parsing2
MagicBot 4 months ago
parent
commit
0b5564267f
  1. 2
      src/engine/wpak/PowerActionParser.java

2
src/engine/wpak/PowerActionParser.java

@ -225,6 +225,8 @@ public class PowerActionParser {
case "LEVELCAP": case "LEVELCAP":
arguments = lineValues[1].trim().split("\\s+"); arguments = lineValues[1].trim().split("\\s+");
powerActionEntry.levelCap = Integer.parseInt(arguments[0]); powerActionEntry.levelCap = Integer.parseInt(arguments[0]);
if (arguments.length > 1) // Not all level caps have a curve
powerActionEntry.levelCurve = mbEnums.CompoundCurveType.valueOf(arguments[1]); powerActionEntry.levelCurve = mbEnums.CompoundCurveType.valueOf(arguments[1]);
break; break;
case "CLEARAGGRO": case "CLEARAGGRO":

Loading…
Cancel
Save