From 3a27f2f4c8f04a8aaaa7fa4269aeb9f9a7eb52b2 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 18 Aug 2024 15:57:37 -0400 Subject: [PATCH] More powerAction work. --- src/engine/wpak/PowersParser.java | 8 +++++++- src/engine/wpak/data/PowerAction.java | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index 22c1f930..d5dfe2c8 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -126,7 +126,13 @@ public class PowersParser { powerAction = new PowerAction(); arguments = lineValues[1].trim().split(" "); powerAction.effect_id = arguments[0]; - + powerAction.minTrains = Integer.parseInt(arguments[1]); + powerAction.maxTrains = Integer.parseInt(arguments[2]); + powerAction.duration = Integer.parseInt(arguments[3]); + powerAction.stackingCategory = arguments[4]; + powerAction.curve = mbEnums.CompoundCurveType.valueOf(arguments[5]); + powerAction.stackingPriority = Integer.parseInt(arguments[6]); + powerAction.categoryToPower = mbEnums.CategoryToPowerType.valueOf(arguments[7]); break; default: diff --git a/src/engine/wpak/data/PowerAction.java b/src/engine/wpak/data/PowerAction.java index 00e114b6..bbe24ec5 100644 --- a/src/engine/wpak/data/PowerAction.java +++ b/src/engine/wpak/data/PowerAction.java @@ -16,7 +16,7 @@ public class PowerAction { public int minTrains; public int maxTrains; public int duration; - public String StackingCategory; + public String stackingCategory; public mbEnums.CompoundCurveType curve; public int stackingPriority; public mbEnums.CategoryToPowerType categoryToPower;