From 1b7114d8bdfbd7bed1a204451ea22d7634f8257c Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 20 Aug 2024 18:35:34 -0400 Subject: [PATCH] More powerAction work --- src/engine/wpak/PowerActionParser.java | 3 +++ src/engine/wpak/data/PowerActionEntry.java | 1 + 2 files changed, 4 insertions(+) diff --git a/src/engine/wpak/PowerActionParser.java b/src/engine/wpak/PowerActionParser.java index 1f2dabef..9ba0418a 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -271,6 +271,9 @@ public class PowerActionParser { case "DAMAGETYPE": powerActionEntry.damageType = mbEnums.DamageType.valueOf(lineValues[1].trim().toUpperCase()); break; + case "ROOTFSMID": + powerActionEntry.rootFsmID = mbEnums.MobBehaviourType.valueOf(lineValues[1].trim()); + 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 fb684fcb..890037bd 100644 --- a/src/engine/wpak/data/PowerActionEntry.java +++ b/src/engine/wpak/data/PowerActionEntry.java @@ -44,5 +44,6 @@ public class PowerActionEntry { public boolean targetBecomesPet = false; public boolean destroyOldPet = false; public mbEnums.ItemFlags itemFlag; + public mbEnums.MobBehaviourType rootFsmID; }