From 394ba5a1650b7668cb3b5ba6b8314f60eccad6cb Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Aug 2024 08:19:29 -0400 Subject: [PATCH] More PowerEntry parsing work. --- src/engine/wpak/PowersParser.java | 7 +++++++ src/engine/wpak/data/PowerEntry.java | 1 + 2 files changed, 8 insertions(+) diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index 9b021f17..2df6ad6c 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -254,6 +254,13 @@ public class PowersParser { case "CASTERSPULSEPARTICLE": powerEntry.casterPulseParticle = Integer.parseInt(lineValues[1].trim()); break; + case "TARGETEFFECTPREREQS_ORED": + EffectPreReq preReq = new EffectPreReq(); + arguments = lineValues[1].trim().split("\\s+"); + preReq.effect_id = arguments[9]; + preReq.level = Integer.parseInt(arguments[1]); + powerEntry.targetEffectPrereqs.add(preReq); + break; case "SOUNDS": // Values not parsed case "APPLYDAMAGECASTER": case "APPLYDAMAGEOTHER": diff --git a/src/engine/wpak/data/PowerEntry.java b/src/engine/wpak/data/PowerEntry.java index f0afcc1c..33cba54f 100644 --- a/src/engine/wpak/data/PowerEntry.java +++ b/src/engine/wpak/data/PowerEntry.java @@ -61,5 +61,6 @@ public class PowerEntry { public int maxPlayerTargets; public boolean isAdminPower = false; public int casterPulseParticle; + public ArrayList targetEffectPrereqs = new ArrayList<>(); }