From d6272d7310f4aa554ac57dbf541d66c5c30f5404 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Aug 2024 21:26:44 -0400 Subject: [PATCH] PowerActionEntry parsing work. --- src/engine/wpak/PowerActionParser.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/wpak/PowerActionParser.java b/src/engine/wpak/PowerActionParser.java index b6704a6f..d5b8b00b 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -61,7 +61,7 @@ public class PowerActionParser { powerActionData = powerActionData.replaceAll("(?m)^(\\s*#.*|\\s*)\r?\n?", "").trim(); - String[] lineData = powerActionData.trim().split("\n"); + String[] lineData = powerActionData.split("\n"); // Parse effect entry header @@ -86,6 +86,8 @@ public class PowerActionParser { effectDescription.level = Integer.parseInt(headerIterator.next()); } + // Process key value pairs after header + return powerActionEntry; } }