From 27c1ec0e5589270bcec1c73d91f7e84dc173e3bc Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 20 Aug 2024 17:37:17 -0400 Subject: [PATCH] More poweraction parsing 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 e704d0c4..aaee4e7c 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -155,6 +155,9 @@ public class PowerActionParser { case "Resurrect": powerActionEntry.levelCap = Integer.parseInt(headerIterator.next()); break; + case "SetItemFlag": + powerActionEntry.itemFlag = mbEnums.ItemFlags.valueOf(headerIterator.next()); + break; case "Recall": // No arguments for these tags or not parsed case "Teleport": case "TreeChoke": diff --git a/src/engine/wpak/data/PowerActionEntry.java b/src/engine/wpak/data/PowerActionEntry.java index 9181306d..fb684fcb 100644 --- a/src/engine/wpak/data/PowerActionEntry.java +++ b/src/engine/wpak/data/PowerActionEntry.java @@ -43,5 +43,6 @@ public class PowerActionEntry { public boolean clearAggro = false; public boolean targetBecomesPet = false; public boolean destroyOldPet = false; + public mbEnums.ItemFlags itemFlag; }