From 06364a2b9e5c6d9a893d29e676262ed7e93adc81 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 14 Aug 2024 16:53:07 -0400 Subject: [PATCH] More power parsing work. --- src/engine/wpak/PowersParser.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index 29157fe8..474bc59b 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -57,6 +57,13 @@ public class PowersParser { while (matcher.find()) powerHeader.add(matcher.group().trim()); + powerEntry.power_id = powerHeader.get(0); + powerEntry.power_name = powerHeader.get(1); + powerEntry.power_type = powerHeader.get(2); + powerEntry.skill_id = Integer.parseInt(powerHeader.get(3)); + powerEntry.skill_name = powerHeader.get(4); + powerEntry.target_type = powerHeader.get(5); + for (int x = 2; x < powerEntries.length; x++) { // Parse key/pair values }