From d9cc2d2a56e816f08ed6c30caf131eb0e6f69223 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 15 Aug 2024 16:08:33 -0400 Subject: [PATCH] More PowerEntry parsing work. --- src/engine/wpak/PowerEntry.java | 5 +++++ src/engine/wpak/PowersParser.java | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/engine/wpak/PowerEntry.java b/src/engine/wpak/PowerEntry.java index 2cabb47e..0de21c70 100644 --- a/src/engine/wpak/PowerEntry.java +++ b/src/engine/wpak/PowerEntry.java @@ -27,4 +27,9 @@ public class PowerEntry { public float cast_time; public float cool_down; public float recycle_time; + public int unknown03; + public String combatRequirement; + public int unknown04; + public int unknown05; + public String targetRequirement; } diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index 84855485..e132425c 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -74,7 +74,11 @@ public class PowersParser { powerEntry.cast_time = Float.parseFloat(powerHeader.get(14)); powerEntry.cool_down = Float.parseFloat(powerHeader.get(15)); powerEntry.recycle_time = Float.parseFloat(powerHeader.get(16)); - + powerEntry.unknown03 = Integer.parseInt(powerHeader.get(17)); + powerEntry.combatRequirement = powerHeader.get(18); + powerEntry.unknown04 = Integer.parseInt(powerHeader.get(19)); + powerEntry.unknown05 = Integer.parseInt(powerHeader.get(20)); + powerEntry.targetRequirement = powerHeader.get(21); for (int x = 2; x < powerEntries.length; x++) { // Parse key/pair values