diff --git a/src/engine/wpak/PowerEntry.java b/src/engine/wpak/PowerEntry.java index 1729d190..c8a21303 100644 --- a/src/engine/wpak/PowerEntry.java +++ b/src/engine/wpak/PowerEntry.java @@ -21,8 +21,8 @@ public class PowerEntry { public String excludeType; public String costType; public float cost; - public int difficulty; - public int precision; + public float difficulty; + public float precision; public float init_time; public float release_time; public float recycle_time; diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index ca34e430..85f2c8f7 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -94,8 +94,8 @@ public class PowersParser { powerEntry.excludeType = iterator.next(); powerEntry.costType = iterator.next(); powerEntry.cost = Float.parseFloat(iterator.next()); - powerEntry.difficulty = Integer.parseInt(iterator.next()); - powerEntry.precision = Integer.parseInt(iterator.next()); + powerEntry.difficulty = Float.parseFloat(iterator.next()); + powerEntry.precision = Float.parseFloat(iterator.next()); powerEntry.init_time = Float.parseFloat(iterator.next()); powerEntry.release_time = Float.parseFloat(iterator.next()); powerEntry.recycle_time = Float.parseFloat(iterator.next());