From dab46c185c7c60547443facee6cc9d46332d6b70 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 20 Aug 2024 16:37:55 -0400 Subject: [PATCH] More poweraction parsing work. --- src/engine/wpak/PowerActionParser.java | 4 ++-- src/engine/wpak/data/StatTransfer.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/wpak/PowerActionParser.java b/src/engine/wpak/PowerActionParser.java index 408bcc65..6aa21c1f 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -128,9 +128,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()); diff --git a/src/engine/wpak/data/StatTransfer.java b/src/engine/wpak/data/StatTransfer.java index 51a78567..7eff9762 100644 --- a/src/engine/wpak/data/StatTransfer.java +++ b/src/engine/wpak/data/StatTransfer.java @@ -12,10 +12,10 @@ import engine.mbEnums; public class StatTransfer { public mbEnums.CostType fromStat; - public int fromStatValue; + public float fromStatValue; public mbEnums.CompoundCurveType fromCurve; public mbEnums.CostType toStat; - public int toStatValue; + public float toStatValue; public mbEnums.CompoundCurveType toCurve; public boolean fromStatBool; public boolean toStatBool;