From 5b8934c9226630076cbdf5033fd12e986467aad6 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 20 Aug 2024 17:08:59 -0400 Subject: [PATCH] More poweraction parsing work. --- src/engine/wpak/PowerActionParser.java | 3 +++ src/engine/wpak/data/PowerActionEntry.java | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/wpak/PowerActionParser.java b/src/engine/wpak/PowerActionParser.java index 97c040ff..aefc02d4 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -221,6 +221,9 @@ public class PowerActionParser { powerActionEntry.levelCap = Integer.parseInt(arguments[0]); powerActionEntry.levelCurve = mbEnums.CompoundCurveType.valueOf(arguments[1]); break; + case "CLEARAGGRO": + powerActionEntry.clearAggro = Boolean.parseBoolean(lineValues[1].trim()); + break; case "WEAROFFEFFECTOTHER": // Keys not parsed go here. case "WEAROFFEFFECTSELF": break; diff --git a/src/engine/wpak/data/PowerActionEntry.java b/src/engine/wpak/data/PowerActionEntry.java index 4f4ff2b1..5de11864 100644 --- a/src/engine/wpak/data/PowerActionEntry.java +++ b/src/engine/wpak/data/PowerActionEntry.java @@ -39,6 +39,7 @@ public class PowerActionEntry { public mbEnums.DamageType damageType; public boolean applyEffectBlank = false; public boolean wearOffEffectBlank = false; - public boolean removeAll; + public boolean removeAll = false; + public boolean clearAggro = false; }