diff --git a/src/engine/wpak/PowerEntry.java b/src/engine/wpak/PowerEntry.java index 5aa3cd64..2cabb47e 100644 --- a/src/engine/wpak/PowerEntry.java +++ b/src/engine/wpak/PowerEntry.java @@ -21,7 +21,7 @@ public class PowerEntry { public int radius; public String groupReq; public String costType; - public int cost; + public float cost; public int unknown01; public int unknown02; public float cast_time; diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index 1f42f7b0..84855485 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -68,7 +68,7 @@ public class PowersParser { powerEntry.radius = Integer.parseInt(powerHeader.get(8)); powerEntry.groupReq = powerHeader.get(9); powerEntry.costType = powerHeader.get(10); - powerEntry.cost = Integer.parseInt(powerHeader.get(11)); + powerEntry.cost = Float.parseFloat(powerHeader.get(11)); powerEntry.unknown01 = Integer.parseInt(powerHeader.get(12)); powerEntry.unknown02 = Integer.parseInt(powerHeader.get(13)); powerEntry.cast_time = Float.parseFloat(powerHeader.get(14));