From a9b6fcb9ee98445e03ae5c1fb46a4c13976626dd Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Aug 2024 08:12:45 -0400 Subject: [PATCH] More PowerEntry parsing work. --- src/engine/wpak/PowersParser.java | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index 6b49453f..d41bd8ba 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -220,20 +220,6 @@ public class PowersParser { effectPreReq.level = Integer.parseInt(arguments[1]); effectPreReq.message = arguments[2]; break; - case "SOUNDS": // Values not parsed - case "APPLYDAMAGECASTER": - case "APPLYDAMAGEOTHER": - case "APPLYDAMAGETARGET": - case "APPLYEFFECTSELF": - case "APPLYEFFECTOTHER": - case "FIZZLEOTHER": - case "FIZZLESELF": - case "INITSTRING": - case "SUCCESSOTHER": - case "SUCCESSSELF": - case "WEAROFFEFFECTOTHER": - case "WEAROFFEFFECTSELF": - break; case "MONSTERTYPERESTRICTS": arguments = lineValues[1].trim().split("\\s+"); for (String restriction : arguments) @@ -267,7 +253,20 @@ public class PowersParser { case "CASTERSPULSEPARTICLE": powerEntry.casterPulseParticle = Integer.parseInt(lineValues[1].trim()); break; - + case "SOUNDS": // Values not parsed + case "APPLYDAMAGECASTER": + case "APPLYDAMAGEOTHER": + case "APPLYDAMAGETARGET": + case "APPLYEFFECTSELF": + case "APPLYEFFECTOTHER": + case "FIZZLEOTHER": + case "FIZZLESELF": + case "INITSTRING": + case "SUCCESSOTHER": + case "SUCCESSSELF": + case "WEAROFFEFFECTOTHER": + case "WEAROFFEFFECTSELF": + break; default: Logger.error("Unhandled variable type:" + key + " for power: " + powerEntry.power_id); }