From 4c7421cd62982e192729bd125a72aa7cfd933cae Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 14 Aug 2024 17:11:38 -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 f17d43ee..3e30233e 100644 --- a/src/engine/wpak/PowerEntry.java +++ b/src/engine/wpak/PowerEntry.java @@ -18,4 +18,9 @@ public class PowerEntry { public String target_type; public int range; public String radiusType; + public int radius; + public String groupReq; + public String costType; + public int cost; + } diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index a2ee8456..0ca3e63a 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -64,7 +64,11 @@ public class PowersParser { powerEntry.skill_name = powerHeader.get(4); powerEntry.target_type = powerHeader.get(5); powerEntry.range = Integer.parseInt(powerHeader.get(6)); - powerEntry.radiusType = powerHeader.get(2); + powerEntry.radiusType = powerHeader.get(7); + powerEntry.radius = Integer.parseInt(powerHeader.get(8)); + powerEntry.groupReq = powerHeader.get(7); + powerEntry.costType = powerHeader.get(7); + powerEntry.cost = Integer.parseInt(powerHeader.get(8)); for (int x = 2; x < powerEntries.length; x++) {