From acdf6db91a8610097f315c5db4ea3701e255f351 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 18 Aug 2024 16:38:06 -0400 Subject: [PATCH] More PowerEntry work. --- src/engine/wpak/PowersParser.java | 19 +++++++++++++++++++ src/engine/wpak/data/PowerEntry.java | 3 ++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index f6088167..81732ca7 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -151,6 +151,25 @@ public class PowersParser { break; case "DESCRIPTION": powerEntry.description.add(lineValues[1].trim()); + break; + case "CATEGORY": + powerEntry.description.add(lineValues[1].trim()); + break; + case "CURVE": + arguments = lineValues[1].trim().split(" "); + powerEntry.slopeType = arguments[0]; + powerEntry.curve = mbEnums.CompoundCurveType.valueOf(arguments[1]); + break; + case "SOUNDS": + case "APPLYEFFECTOTHER": + case "FIZZLEOTHER": + case "FIZZLESELF": + case "INITSTRING": + case "SUCCESSOTHER": + case "SUCCESSSELF": + case "WEAROFFEFFECTOTHER": + case "WEAROFFEFFECTSELF": + break; default: Logger.error("Unhandled variable type:" + key); } diff --git a/src/engine/wpak/data/PowerEntry.java b/src/engine/wpak/data/PowerEntry.java index b4c9a0ff..74201a59 100644 --- a/src/engine/wpak/data/PowerEntry.java +++ b/src/engine/wpak/data/PowerEntry.java @@ -43,6 +43,7 @@ public class PowerEntry { public int loopAnimID; public String grantOverrideVar; public ArrayList description; + public String slopeType; public mbEnums.CompoundCurveType curve; - + public String category; }