From ed09bffc87a0a6c22cf39a969a0672f327b99a1d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 17 Aug 2024 15:23:12 -0400 Subject: [PATCH] Values are floats --- src/engine/wpak/PowerEntry.java | 4 ++-- src/engine/wpak/PowersParser.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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());