From 7e8cb056ed435d19d098901669e6c1cf76bc4003 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Aug 2024 21:03:34 -0400 Subject: [PATCH] PowerActionEntry parsing work. --- src/engine/wpak/PowerActionParser.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/wpak/PowerActionParser.java b/src/engine/wpak/PowerActionParser.java index 89127993..faf44bab 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -65,8 +65,12 @@ public class PowerActionParser { Iterator iterator = Arrays.stream(lineData).iterator(); String headerLine = iterator.next().toString(); + ArrayList headerData = new ArrayList<>(); - ArrayList effectHeader = new ArrayList<>(); + Matcher matcher = STRSPLIT_REGEX.matcher(headerLine.trim()); + + while (matcher.find()) + headerData.add(matcher.group().trim()); return powerActionEntry; }