Browse Source

Trailing bow can sometimes be missing the bool.

feature-config-usage
MagicBot 1 week ago
parent
commit
cfca585ab5
  1. 11
      src/engine/wpak/PowersParser.java

11
src/engine/wpak/PowersParser.java

@ -153,10 +153,6 @@ public class PowersParser { @@ -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 { @@ -213,7 +209,12 @@ public class PowersParser {
EquipmentPreReq equipmentPreReq = new EquipmentPreReq();
equipmentPreReq.slot = mbEnums.EquipSlotType.valueOf(argumentIterator.next());
equipmentPreReq.skill = argumentIterator.next().replaceAll("\"", "");
equipmentPreReq.required = Integer.parseInt(argumentIterator.next());
if (argumentIterator.hasNext())
equipmentPreReq.required = Integer.parseInt(argumentIterator.next());
else
equipmentPreReq.required = 0;
powerEntry.equipmentPreReq.add(equipmentPreReq);
}
break;

Loading…
Cancel
Save