Browse Source

More PowerEntry work.

feature-config-parsing2
MagicBot 4 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 {
equipmentPreReq.skill = arguments[1].trim(); equipmentPreReq.skill = arguments[1].trim();
equipmentPreReq.level = Integer.parseInt(arguments[2].trim()); equipmentPreReq.level = Integer.parseInt(arguments[2].trim());
break; break;
case "CANCASTWHILEMOVING":
powerEntry.canCastWhileMoving = 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

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

Loading…
Cancel
Save