From 2fb7260077c983566a826f75888324113cd22a1c Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 21 Aug 2024 16:37:47 -0400 Subject: [PATCH] Support for multiple pre-reqs --- src/engine/wpak/PowersParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index d6515a04..383a078f 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -196,7 +196,6 @@ public class PowersParser { powerEntry.curves.put(arguments.get(0), mbEnums.CompoundCurveType.valueOf(arguments.get(1))); break; case "EQPREREQ": - EquipmentPreReq equipmentPreReq = new EquipmentPreReq(); matcher1 = STRSPLIT_REGEX.matcher(lineValues.get(1).trim()); arguments = new ArrayList<>(); @@ -206,6 +205,7 @@ public class PowersParser { argumentIterator = arguments.iterator(); 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));