From a863902370c71de5c5545e59ce52f8861025ca92 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Aug 2024 08:10:13 -0400 Subject: [PATCH] More PowerEntry parsing work. --- src/engine/wpak/PowersParser.java | 3 +++ src/engine/wpak/data/PowerEntry.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index e4e8323d..a4bfeb34 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -261,6 +261,9 @@ public class PowersParser { case "MAXNUMPLAYERTARGETS": powerEntry.maxPlayerTargets = Integer.parseInt(lineValues[1].trim()); break; + case "ISADMINPOWER": + powerEntry.isAdminPower = 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 c07605fd..cd71a181 100644 --- a/src/engine/wpak/data/PowerEntry.java +++ b/src/engine/wpak/data/PowerEntry.java @@ -58,6 +58,8 @@ public class PowerEntry { public int pulseDuration; public int maxMobTargets; public int maxPlayerTargets; + public boolean isAdminPower = false; + }