|
|
@ -146,6 +146,8 @@ public class PowersParser { |
|
|
|
String key = lineValues[0].trim(); |
|
|
|
String key = lineValues[0].trim(); |
|
|
|
PowerAction powerAction; |
|
|
|
PowerAction powerAction; |
|
|
|
String[] arguments; |
|
|
|
String[] arguments; |
|
|
|
|
|
|
|
Matcher matcher1; |
|
|
|
|
|
|
|
ArrayList<String> args; |
|
|
|
|
|
|
|
|
|
|
|
switch (key) { |
|
|
|
switch (key) { |
|
|
|
case "ACTION": |
|
|
|
case "ACTION": |
|
|
@ -192,11 +194,16 @@ public class PowersParser { |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "EQPREREQ": |
|
|
|
case "EQPREREQ": |
|
|
|
EquipmentPreReq equipmentPreReq = new EquipmentPreReq(); |
|
|
|
EquipmentPreReq equipmentPreReq = new EquipmentPreReq(); |
|
|
|
arguments = lineValues[1].trim().split(" "); |
|
|
|
matcher1 = STRSPLIT_REGEX.matcher(lineValues[1].trim()); |
|
|
|
|
|
|
|
args = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while (matcher1.find()) |
|
|
|
|
|
|
|
args.add(matcher.group().trim()); |
|
|
|
|
|
|
|
|
|
|
|
equipmentPreReq.slot = mbEnums.EquipSlotType.valueOf(arguments[0]); |
|
|
|
equipmentPreReq.slot = mbEnums.EquipSlotType.valueOf(args.get(0)); |
|
|
|
equipmentPreReq.skill = arguments[1].trim(); |
|
|
|
equipmentPreReq.skill = args.get(1); |
|
|
|
equipmentPreReq.level = Integer.parseInt(arguments[2].trim()); |
|
|
|
equipmentPreReq.level = Integer.parseInt(args.get(2)); |
|
|
|
|
|
|
|
powerEntry.equipmentPreReq = equipmentPreReq; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "CANCASTWHILEMOVING": |
|
|
|
case "CANCASTWHILEMOVING": |
|
|
|
powerEntry.canCastWhileMoving = Boolean.parseBoolean(lineValues[1].trim()); |
|
|
|
powerEntry.canCastWhileMoving = Boolean.parseBoolean(lineValues[1].trim()); |
|
|
|