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.