Browse Source

More PowerEntry work.

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

3
src/engine/wpak/PowersParser.java

@ -189,6 +189,9 @@ public class PowersParser { @@ -189,6 +189,9 @@ public class PowersParser {
equipmentPreReq.skill = arguments[1].trim();
equipmentPreReq.level = Integer.parseInt(arguments[2].trim());
break;
case "CANCASTWHILEMOVING":
powerEntry.canCastWhileMoving = Boolean.parseBoolean(lineValues[1].trim());
break;
case "SOUNDS": // Values not parsed
case "APPLYEFFECTOTHER":
case "FIZZLEOTHER":

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

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

Loading…
Cancel
Save