From a11797c5e4f2c4ff836de7bb1c1e9edf4151a42a Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Aug 2024 06:01:52 -0400 Subject: [PATCH] More PowerEntry work. --- src/engine/wpak/PowersParser.java | 3 +++ src/engine/wpak/data/PowerEntry.java | 1 + 2 files changed, 4 insertions(+) diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index b700f7c1..b4703547 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -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": diff --git a/src/engine/wpak/data/PowerEntry.java b/src/engine/wpak/data/PowerEntry.java index a817bb26..8e6cf865 100644 --- a/src/engine/wpak/data/PowerEntry.java +++ b/src/engine/wpak/data/PowerEntry.java @@ -46,4 +46,5 @@ public class PowerEntry { public String slopeType; public mbEnums.CompoundCurveType curve; public String category; + public boolean canCastWhileMoving = false; }