From 8eeb539f16b75205e3adfbb5d1323b6a0a4ebb64 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Aug 2024 08:12:18 -0400 Subject: [PATCH] More PowerEntry parsing work. --- src/engine/wpak/PowersParser.java | 4 ++++ src/engine/wpak/data/PowerEntry.java | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index a4bfeb34..6b49453f 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -264,6 +264,10 @@ public class PowersParser { case "ISADMINPOWER": powerEntry.isAdminPower = Boolean.parseBoolean(lineValues[1].trim()); break; + case "CASTERSPULSEPARTICLE": + powerEntry.casterPulseParticle = Integer.parseInt(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 cd71a181..1177fb19 100644 --- a/src/engine/wpak/data/PowerEntry.java +++ b/src/engine/wpak/data/PowerEntry.java @@ -59,7 +59,6 @@ public class PowerEntry { public int maxMobTargets; public int maxPlayerTargets; public boolean isAdminPower = false; - - + public int casterPulseParticle; }