From 6b22e624f6611396d234f99dafb2e8683dd3b31c Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 16 Aug 2024 12:01:13 -0400 Subject: [PATCH] Debug code added --- src/engine/wpak/PowersParser.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index f07c188e..18cfafb0 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -63,6 +63,10 @@ public class PowersParser { powerHeader.add(matcher.group().trim()); powerEntry.power_id = powerHeader.get(0); + + if (powerHeader.size() != 21) + Logger.error(powerEntry.power_id); + powerEntry.power_name = powerHeader.get(1).replaceAll("\"", ""); powerEntry.power_type = powerHeader.get(2); powerEntry.skill_id = Integer.parseInt(powerHeader.get(3));