From 5fa79fbac66eeb17f221dbfcd2c549c5dfefaa43 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 19 Jan 2025 12:01:53 -0500 Subject: [PATCH] Parsing update for eqreqs --- src/engine/wpak/PowersParser.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index 59a206b2..11ae2d79 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -207,9 +207,9 @@ public class PowersParser { while (argumentIterator.hasNext()) { EquipmentPreReq equipmentPreReq = new EquipmentPreReq(); - equipmentPreReq.slot = mbEnums.EquipSlotType.valueOf(arguments.get(0)); - equipmentPreReq.skill = arguments.get(1).replaceAll("\"", ""); - equipmentPreReq.required = Integer.parseInt(arguments.get(2)); + equipmentPreReq.slot = mbEnums.EquipSlotType.valueOf(argumentIterator.next()); + equipmentPreReq.skill = argumentIterator.next().replaceAll("\"", ""); + equipmentPreReq.required = Integer.parseInt(argumentIterator.next()); powerEntry.equipmentPreReq.add(equipmentPreReq); } break;