From c0560ece47cdab4ded7b2d38fdba0dae143acf21 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Aug 2024 05:55:49 -0400 Subject: [PATCH] More PowerEntry work. --- src/engine/wpak/PowersParser.java | 9 +++++++++ src/engine/wpak/data/EquipmentPreReq.java | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 src/engine/wpak/data/EquipmentPreReq.java diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index 5ba3b80d..bddfddf7 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -10,6 +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; @@ -180,6 +181,14 @@ public class PowersParser { powerEntry.slopeType = arguments[0]; powerEntry.curve = mbEnums.CompoundCurveType.valueOf(arguments[1]); break; + case "EQPREREQ": + EquipmentPreReq equipmentPreReq = new EquipmentPreReq(); + arguments = lineValues[1].trim().split(" "); + + equipmentPreReq.slot = mbEnums.EquipSlotType.valueOf(arguments[0]); + equipmentPreReq.skill = arguments[1].trim(); + equipmentPreReq.level = Integer.parseInt(lineValues[2].trim()); + break; case "SOUNDS": case "APPLYEFFECTOTHER": case "FIZZLEOTHER": diff --git a/src/engine/wpak/data/EquipmentPreReq.java b/src/engine/wpak/data/EquipmentPreReq.java new file mode 100644 index 00000000..4c435f20 --- /dev/null +++ b/src/engine/wpak/data/EquipmentPreReq.java @@ -0,0 +1,19 @@ +// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ . +// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌· +// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀ +// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌ +// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀ +// Magicbane Emulator Project © 2013 - 2024 +// www.magicbane.com + +package engine.wpak.data; + +import engine.mbEnums; + +public class EquipmentPreReq { + + public static mbEnums.EquipSlotType slot; + public static String skill; + public static int level; + +}