From e6a8cdd5e274aa977a27ca37680eea518675661b Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Aug 2024 07:56:04 -0400 Subject: [PATCH] More PowerEntry parsing 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 323f8810..b5a3d3cb 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -239,6 +239,9 @@ public class PowersParser { for (String restriction : arguments) powerEntry.monsterRestricts.add(mbEnums.MonsterType.valueOf(restriction.trim())); break; + case "SHOULDCHECKPATH": + powerEntry.shouldCheckPath = Boolean.parseBoolean(lineValues[1].trim()); + break; default: Logger.error("Unhandled variable type:" + key + " for power: " + powerEntry.power_id); } diff --git a/src/engine/wpak/data/PowerEntry.java b/src/engine/wpak/data/PowerEntry.java index b51e26e9..b197f9e2 100644 --- a/src/engine/wpak/data/PowerEntry.java +++ b/src/engine/wpak/data/PowerEntry.java @@ -51,4 +51,5 @@ public class PowerEntry { public boolean bladeTrails = false; public EquipmentPreReq equipmentPreReq; public EnumSet monsterRestricts; + public boolean shouldCheckPath = false; }