From bf2174fbe538b00a7be27abfa78aadea692d1c92 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 17 Aug 2024 15:29:11 -0400 Subject: [PATCH] Sometimes bad floats. --- src/engine/wpak/PowersParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index 9924da1d..aa7b5830 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -95,8 +95,8 @@ public class PowersParser { powerEntry.costType = iterator.next(); powerEntry.cost = Float.parseFloat(iterator.next()); powerEntry.difficulty = Float.parseFloat(iterator.next()); - powerEntry.precision = Float.parseFloat(iterator.next().replaceAll("(\\.0)+$", "")); - powerEntry.init_time = Float.parseFloat(iterator.next()); + powerEntry.precision = Float.parseFloat(iterator.next()); + powerEntry.init_time = Float.parseFloat(iterator.next().replaceAll("(\\.0)+$", "")); powerEntry.release_time = Float.parseFloat(iterator.next()); powerEntry.recycle_time = Float.parseFloat(iterator.next()); powerEntry.hitRollYN = Integer.parseInt(iterator.next());