Browse Source

More PowerEntry work.

feature-config-parsing2
MagicBot 4 months ago
parent
commit
c6647a99b8
  1. 3
      src/engine/wpak/PowersParser.java
  2. 1
      src/engine/wpak/data/PowerEntry.java

3
src/engine/wpak/PowersParser.java

@ -192,6 +192,9 @@ public class PowersParser {
case "CANCASTWHILEMOVING": case "CANCASTWHILEMOVING":
powerEntry.canCastWhileMoving = Boolean.parseBoolean(lineValues[1].trim()); powerEntry.canCastWhileMoving = Boolean.parseBoolean(lineValues[1].trim());
break; break;
case "BLADETRAILS":
powerEntry.bladeTrails = Boolean.parseBoolean(lineValues[1].trim());
break;
case "SOUNDS": // Values not parsed case "SOUNDS": // Values not parsed
case "APPLYEFFECTOTHER": case "APPLYEFFECTOTHER":
case "FIZZLEOTHER": case "FIZZLEOTHER":

1
src/engine/wpak/data/PowerEntry.java

@ -47,4 +47,5 @@ public class PowerEntry {
public mbEnums.CompoundCurveType curve; public mbEnums.CompoundCurveType curve;
public String category; public String category;
public boolean canCastWhileMoving = false; public boolean canCastWhileMoving = false;
public boolean bladeTrails = false;
} }

Loading…
Cancel
Save