Trailing bow can sometimes be missing the bool.

This commit is contained in:
2025-01-20 16:46:51 -05:00
parent db2a168229
commit cfca585ab5
+5 -4
View File
@@ -153,10 +153,6 @@ public class PowersParser {
ActionEntry actionEntry;
List<String> arguments;
Matcher argumentMatcher;
int blah = 0;
if (powerEntry.power_id.equals("ASS-BACKSTAB"))
blah = 1;
switch (key) {
case "ACTION":
@@ -213,7 +209,12 @@ public class PowersParser {
EquipmentPreReq equipmentPreReq = new EquipmentPreReq();
equipmentPreReq.slot = mbEnums.EquipSlotType.valueOf(argumentIterator.next());
equipmentPreReq.skill = argumentIterator.next().replaceAll("\"", "");
if (argumentIterator.hasNext())
equipmentPreReq.required = Integer.parseInt(argumentIterator.next());
else
equipmentPreReq.required = 0;
powerEntry.equipmentPreReq.add(equipmentPreReq);
}
break;