From 177917a8c89d86c4fee4d4efd77f9f0718452284 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Aug 2024 07:32:25 -0400 Subject: [PATCH] EffectPreReq pojo created --- src/engine/wpak/PowersParser.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index 6f563fda..4d92c691 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -10,10 +10,7 @@ package engine.wpak; import engine.gameManager.ConfigManager; import engine.mbEnums; -import engine.wpak.data.EquipmentPreReq; -import engine.wpak.data.PowerAction; -import engine.wpak.data.PowerData; -import engine.wpak.data.PowerEntry; +import engine.wpak.data.*; import org.pmw.tinylog.Logger; import java.io.IOException; @@ -216,6 +213,13 @@ public class PowersParser { case "BLADETRAILS": powerEntry.bladeTrails = Boolean.parseBoolean(lineValues[1].trim()); break; + case "EFFECTPREREQ": + EffectPreReq effectPreReq = new EffectPreReq(); + arguments = lineValues[1].trim().split("\\s+"); + effectPreReq.effect_id = arguments[9]; + effectPreReq.level = Integer.parseInt(arguments[1]); + effectPreReq.message = arguments[2]; + break; case "SOUNDS": // Values not parsed case "APPLYDAMAGECASTER": case "APPLYDAMAGEOTHER":