From 5860a263d9581756c38fa98b7b3999b2afa9c435 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Aug 2024 08:02:35 -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 e0d13e8f..6f662d62 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -247,6 +247,9 @@ public class PowersParser { case "SHOULDCHECKPATH": powerEntry.shouldCheckPath = Boolean.parseBoolean(lineValues[1].trim()); break; + case "STICKY": + powerEntry.sticky = 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 a9c87a49..52bcb8fa 100644 --- a/src/engine/wpak/data/PowerEntry.java +++ b/src/engine/wpak/data/PowerEntry.java @@ -53,4 +53,5 @@ public class PowerEntry { public EnumSet monsterRestricts = EnumSet.noneOf(mbEnums.MonsterType.class); public EnumSet monsterPrereqs = EnumSet.noneOf(mbEnums.MonsterType.class); public boolean shouldCheckPath = false; + public boolean sticky = false; }