From b5cc45aafd7f6ddea34c38cd89dc162e7018a97e Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 20 Aug 2024 16:43:56 -0400 Subject: [PATCH] More poweraction parsing work. --- src/engine/wpak/PowerActionParser.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/engine/wpak/PowerActionParser.java b/src/engine/wpak/PowerActionParser.java index 5414005f..88543096 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -123,6 +123,7 @@ public class PowerActionParser { statTransfer.toCurve = mbEnums.CompoundCurveType.valueOf(headerIterator.next()); statTransfer.fromStatBool = Boolean.parseBoolean(headerIterator.next()); statTransfer.toStatBool = Boolean.parseBoolean(headerIterator.next()); + powerActionEntry.statTransfer = statTransfer; break; case "TransferStatOT": statTransfer = new StatTransfer(); @@ -136,6 +137,7 @@ public class PowerActionParser { statTransfer.toStatBool = Boolean.parseBoolean(headerIterator.next()); statTransfer.transfer_action = headerIterator.next(); statTransfer.tranfer_ticks = Integer.parseInt(headerIterator.next()); + powerActionEntry.statTransfer = statTransfer; break; case "Teleport":// No arguments for these tags case "TreeChoke": @@ -202,6 +204,11 @@ public class PowerActionParser { case "REMOVEALL": powerActionEntry.removeAll = Boolean.parseBoolean(lineValues[1].trim()); break; + case "EFFECTID": + effectDescription = new EffectDescription(); + effectDescription.effect_id = lineValues[1].trim(); + powerActionEntry.effects.add(effectDescription); + break; case "WEAROFFEFFECTOTHER": // Keys not parsed go here. case "WEAROFFEFFECTSELF": break;