From 4b888b3d9280df5c3104e4357de30fc706b3a248 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 18 Aug 2024 16:27:13 -0400 Subject: [PATCH] More PowerEntry work. --- src/engine/wpak/PowersParser.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index c7c6fbac..28e2bbab 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -138,6 +138,18 @@ public class PowersParser { case "MaxLevel": powerEntry.maxLevel = Integer.parseInt(lineValues[1].trim()); break; + case "HateValue": + arguments = lineValues[1].trim().split(" "); + powerEntry.hateValue = Integer.parseInt(arguments[0]); + powerEntry.hateCurve = mbEnums.CompoundCurveType.valueOf(arguments[1]); + break; + case "LOOPANIMID": + powerEntry.loopAnimID = Integer.parseInt(lineValues[1].trim()); + break; + case "GRANTOVERRIDEVAR": + powerEntry.grantOverrideVar = lineValues[1].trim(); + break; + default: Logger.error("Unhandled variable type:" + key); }