From 71c240e347a01a9a746ccb40db8307ba105b0e62 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 20 Aug 2024 19:16:11 -0400 Subject: [PATCH] More PowerAction parsing work. --- src/engine/wpak/PowerActionParser.java | 5 +++++ src/engine/wpak/data/PowerActionEntry.java | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/engine/wpak/PowerActionParser.java b/src/engine/wpak/PowerActionParser.java index bf5108db..52ce6ca8 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -285,6 +285,11 @@ public class PowerActionParser { case "ROOTFSMID": powerActionEntry.rootFsmID = mbEnums.MobBehaviourType.valueOf(lineValues[1].trim()); break; + case "SPLASHDAMAGE": + arguments = lineValues[1].trim().split("\\s+"); + powerActionEntry.splashDamageMin = Integer.parseInt(arguments[0]); + powerActionEntry.splashDamageMax = Integer.parseInt(arguments[1]); + break; case "APPLYEFFECTOTHER": case "APPLYEFFECTSELF": case "WEAROFFEFFECTOTHER": // Keys not parsed go here. diff --git a/src/engine/wpak/data/PowerActionEntry.java b/src/engine/wpak/data/PowerActionEntry.java index 5124c0d0..0b2aeceb 100644 --- a/src/engine/wpak/data/PowerActionEntry.java +++ b/src/engine/wpak/data/PowerActionEntry.java @@ -46,5 +46,8 @@ public class PowerActionEntry { public boolean destroyOldPet = false; public mbEnums.ItemFlags itemFlag; public mbEnums.MobBehaviourType rootFsmID; + public int splashDamageMin; + public int splashDamageMax; + }