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; + +}