From fa28129aa485805b58b10a81b5dc9736a39b8bf8 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 20 Aug 2024 15:27:06 -0400 Subject: [PATCH] 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 b1432fce..ceb756db 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -164,6 +164,9 @@ public class PowerActionParser { for (String bodyPart : arguments) powerActionEntry.attackAnimations.add(Integer.parseInt(bodyPart)); break; + case "REMOVEALL": + powerActionEntry.removeAll = 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 b57cbe9e..0c2e288b 100644 --- a/src/engine/wpak/data/PowerActionEntry.java +++ b/src/engine/wpak/data/PowerActionEntry.java @@ -33,7 +33,8 @@ public class PowerActionEntry { public mbEnums.DamageType damageType; public boolean applyEffectBlank = false; public boolean wearOffEffectBlank = false; - public int arg1; + public int arg1; // used in DamageOverTime, CreateMob, etc. public int arg2; + public boolean removeAll; }