From e56c5a4fdc4c930f500463a6130c9d254d67d74a Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 20 Aug 2024 18:49:03 -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 54c75f6b..e225dbcc 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -176,11 +176,13 @@ public class PowerActionParser { trackEntry.type = headerIterator.next(); trackEntry.min = Integer.parseInt(headerIterator.next()); trackEntry.max = Integer.parseInt(headerIterator.next()); + powerActionEntry.trackEntry = trackEntry; break; case "NOTRANSFORM": effectDescription = new EffectDescription(); effectDescription.type = headerIterator.next(); effectDescription.effect_id = headerIterator.next(); + powerActionEntry.effects.add(effectDescription); break; case "NOROOT": case "NOSNARE": @@ -197,6 +199,7 @@ public class PowerActionParser { effectDescription.type = headerIterator.next(); effectDescription.effect_id = headerIterator.next(); effectDescription.level = Integer.parseInt(headerIterator.next()); + powerActionEntry.effects.add(effectDescription); break; case "Recall": // No arguments for these tags or not parsed case "Teleport": diff --git a/src/engine/wpak/data/PowerActionEntry.java b/src/engine/wpak/data/PowerActionEntry.java index 890037bd..5124c0d0 100644 --- a/src/engine/wpak/data/PowerActionEntry.java +++ b/src/engine/wpak/data/PowerActionEntry.java @@ -24,6 +24,7 @@ public class PowerActionEntry { public StatTransfer statTransfer; public int levelCap; public mbEnums.CompoundCurveType levelCurve; + public TrackEntry trackEntry; // Additional variables after header go here.