From d0c41816ace567fd5a1218fbe18739cf82508f18 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 20 Aug 2024 18:24:05 -0400 Subject: [PATCH] More powerAction work --- src/engine/wpak/PowerActionParser.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/engine/wpak/PowerActionParser.java b/src/engine/wpak/PowerActionParser.java index 3f598ff2..7fc507b5 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -102,10 +102,17 @@ public class PowerActionParser { effectDescription.cycleDelay = Integer.parseInt(headerIterator.next()); powerActionEntry.effects.add(effectDescription); break; + case "ApplyEffects": + while (headerIterator.hasNext()) { + effectDescription = new EffectDescription(); + effectDescription.level = Integer.parseInt(headerIterator.next()); + effectDescription.effect_id = headerIterator.next(); + powerActionEntry.effects.add(effectDescription); + } + break; case "Transform": case "Invis": case "ApplyEffect": - case "ApplyEffects": case "DeferredPower": case "DirectDamage": while (headerIterator.hasNext()) {