From 94d3364808ff438b873e9e5bdb56b996e0ad476e Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 20 Aug 2024 16:39:51 -0400 Subject: [PATCH] More poweraction parsing work. --- src/engine/wpak/PowerActionParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/wpak/PowerActionParser.java b/src/engine/wpak/PowerActionParser.java index 6aa21c1f..5414005f 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -117,9 +117,9 @@ public class PowerActionParser { statTransfer = new StatTransfer(); statTransfer.fromStat = mbEnums.CostType.valueOf(headerIterator.next()); statTransfer.toStat = mbEnums.CostType.valueOf(headerIterator.next()); - statTransfer.fromStatValue = Integer.parseInt(headerIterator.next()); + statTransfer.fromStatValue = Float.parseFloat(headerIterator.next()); statTransfer.fromCurve = mbEnums.CompoundCurveType.valueOf(headerIterator.next()); - statTransfer.toStatValue = Integer.parseInt(headerIterator.next()); + statTransfer.toStatValue = Float.parseFloat(headerIterator.next()); statTransfer.toCurve = mbEnums.CompoundCurveType.valueOf(headerIterator.next()); statTransfer.fromStatBool = Boolean.parseBoolean(headerIterator.next()); statTransfer.toStatBool = Boolean.parseBoolean(headerIterator.next());