From 76620691009fe8fbcb37da718ad259e0180e6235 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 14 Aug 2024 17:00:19 -0400 Subject: [PATCH] More PowerEntry parsing work --- src/engine/wpak/PowerEntry.java | 2 ++ src/engine/wpak/PowersParser.java | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/engine/wpak/PowerEntry.java b/src/engine/wpak/PowerEntry.java index 6a187f36..f17d43ee 100644 --- a/src/engine/wpak/PowerEntry.java +++ b/src/engine/wpak/PowerEntry.java @@ -16,4 +16,6 @@ public class PowerEntry { public int skill_id; public String skill_name; public String target_type; + public int range; + public String radiusType; } diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index 474bc59b..a2ee8456 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -63,6 +63,9 @@ public class PowersParser { powerEntry.skill_id = Integer.parseInt(powerHeader.get(3)); powerEntry.skill_name = powerHeader.get(4); powerEntry.target_type = powerHeader.get(5); + powerEntry.range = Integer.parseInt(powerHeader.get(6)); + powerEntry.radiusType = powerHeader.get(2); + for (int x = 2; x < powerEntries.length; x++) { // Parse key/pair values