From 41a9c190018bedf14bb2b394d46e99da801c5b62 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Aug 2024 08:29:07 -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 77464a3f..47197685 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -254,6 +254,9 @@ public class PowersParser { case "ISADMINPOWER": powerEntry.isAdminPower = Boolean.parseBoolean(lineValues[1].trim()); break; + case "ISPROJECTILE": + powerEntry.isProjectile = Boolean.parseBoolean(lineValues[1].trim()); + break; case "CASTERSPULSEPARTICLE": powerEntry.casterPulseParticle = Integer.parseInt(lineValues[1].trim()); break; diff --git a/src/engine/wpak/data/PowerEntry.java b/src/engine/wpak/data/PowerEntry.java index a553549c..718d1700 100644 --- a/src/engine/wpak/data/PowerEntry.java +++ b/src/engine/wpak/data/PowerEntry.java @@ -63,5 +63,6 @@ public class PowerEntry { public int casterPulseParticle; public ArrayList targetEffectPrereqs = new ArrayList<>(); public boolean canCastWhileFlying = false; + public boolean isProjectile = false; }