From 1bcf307f94f7658427f5bba5c9b906094fb3ea3f Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Aug 2024 06:33:30 -0400 Subject: [PATCH] More PowerEntry work. --- src/engine/wpak/PowersParser.java | 2 +- src/engine/wpak/data/PowerAction.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index 2e6a4349..15d757a4 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -154,7 +154,7 @@ public class PowersParser { powerAction.effect_id = arguments[0]; powerAction.minTrains = Integer.parseInt(arguments[1]); powerAction.maxTrains = Integer.parseInt(arguments[2]); - powerAction.duration = Integer.parseInt(arguments[3]); + powerAction.duration = Float.parseFloat(arguments[3]); powerAction.curve = mbEnums.CompoundCurveType.valueOf(arguments[4]); powerAction.stackingCategory = arguments[5]; powerAction.stackingPriority = Integer.parseInt(arguments[6]); diff --git a/src/engine/wpak/data/PowerAction.java b/src/engine/wpak/data/PowerAction.java index bbe24ec5..28ef5187 100644 --- a/src/engine/wpak/data/PowerAction.java +++ b/src/engine/wpak/data/PowerAction.java @@ -15,7 +15,7 @@ public class PowerAction { public String effect_id; public int minTrains; public int maxTrains; - public int duration; + public float duration; public String stackingCategory; public mbEnums.CompoundCurveType curve; public int stackingPriority;