From 4f25e7e24f303b4cc48dc1d2c329d257413e2aa7 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Aug 2024 08:06:09 -0400 Subject: [PATCH] More PowerEntry parsing work. --- src/engine/wpak/PowersParser.java | 5 +++++ src/engine/wpak/data/PowerEntry.java | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index 6f662d62..60d8b06c 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -250,6 +250,11 @@ public class PowersParser { case "STICKY": powerEntry.sticky = Boolean.parseBoolean(lineValues[1].trim()); break; + case "PULSEINFO": + arguments = lineValues[1].trim().split("\\s+"); + powerEntry.pulseCycle = Integer.parseInt(arguments[0]); + powerEntry.pulseDuration = Integer.parseInt(arguments[1]); + 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 52bcb8fa..b35785fa 100644 --- a/src/engine/wpak/data/PowerEntry.java +++ b/src/engine/wpak/data/PowerEntry.java @@ -54,4 +54,7 @@ public class PowerEntry { public EnumSet monsterPrereqs = EnumSet.noneOf(mbEnums.MonsterType.class); public boolean shouldCheckPath = false; public boolean sticky = false; + public int pulseCycle; + public int pulseDuration; + }