From a8ea778c6e479ff0c9efe33186d4684f9041c9a6 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 20 Aug 2024 12:13:01 -0400 Subject: [PATCH] Debug code added --- src/engine/wpak/PowerActionParser.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/wpak/PowerActionParser.java b/src/engine/wpak/PowerActionParser.java index fc819d70..16a922d2 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -58,6 +58,7 @@ public class PowerActionParser { PowerActionEntry powerActionEntry = new PowerActionEntry(); EffectDescription effectDescription; + try { // Remove all lines that contain a # and leading/trailing blank lines powerActionData = powerActionData.replaceAll("(?m)^(\\s*#.*|\\s*)\r?\n?", "").trim(); @@ -150,6 +151,9 @@ public class PowerActionParser { } } + } catch (Exception e) { + Logger.error(powerActionEntry.action_id + " " + e); + } return powerActionEntry; } }