From 85ee1faf4aeb2706d87e27ead0294bf30a088da5 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Aug 2024 15:18:19 -0400 Subject: [PATCH] PowerAction work started. --- src/engine/wpak/PowersParser.java | 3 +-- src/engine/wpak/data/PowerEntry.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index 6e2eeb3b..54311c51 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -190,8 +190,7 @@ public class PowersParser { break; case "CURVE": arguments = lineValues[1].trim().split("\\s+"); - powerEntry.slopeType = arguments[0]; - powerEntry.curve = mbEnums.CompoundCurveType.valueOf(arguments[1]); + powerEntry.curves.put(arguments[0], mbEnums.CompoundCurveType.valueOf(arguments[1])); break; case "EQPREREQ": EquipmentPreReq equipmentPreReq = new EquipmentPreReq(); diff --git a/src/engine/wpak/data/PowerEntry.java b/src/engine/wpak/data/PowerEntry.java index 9ff89257..1714476f 100644 --- a/src/engine/wpak/data/PowerEntry.java +++ b/src/engine/wpak/data/PowerEntry.java @@ -45,8 +45,7 @@ public class PowerEntry { public int loopAnimID; public String grantOverrideVar; public ArrayList description = new ArrayList<>(); - public String slopeType; - public mbEnums.CompoundCurveType curve; + public HashMap curves; public String category; public boolean canCastWhileMoving = false; public boolean bladeTrails = false;