|
|
@ -61,7 +61,8 @@ public class PowersParser { |
|
|
|
StringBuilder powerBuilder = new StringBuilder(); |
|
|
|
StringBuilder powerBuilder = new StringBuilder(); |
|
|
|
String conditionString; |
|
|
|
String conditionString; |
|
|
|
String powerString; |
|
|
|
String powerString; |
|
|
|
|
|
|
|
java.util.Iterator<String> iterator; |
|
|
|
|
|
|
|
java.util.Iterator<String> argumentIterator; |
|
|
|
int endPos = 0; |
|
|
|
int endPos = 0; |
|
|
|
|
|
|
|
|
|
|
|
// Separate out any conditions from the power data
|
|
|
|
// Separate out any conditions from the power data
|
|
|
@ -95,7 +96,7 @@ public class PowersParser { |
|
|
|
while (matcher.find()) |
|
|
|
while (matcher.find()) |
|
|
|
powerHeader.add(matcher.group().trim()); |
|
|
|
powerHeader.add(matcher.group().trim()); |
|
|
|
|
|
|
|
|
|
|
|
java.util.Iterator<String> iterator = powerHeader.iterator(); |
|
|
|
iterator = powerHeader.iterator(); |
|
|
|
|
|
|
|
|
|
|
|
powerEntry.power_id = iterator.next(); |
|
|
|
powerEntry.power_id = iterator.next(); |
|
|
|
powerEntry.power = iterator.next().replaceAll("\"", ""); |
|
|
|
powerEntry.power = iterator.next().replaceAll("\"", ""); |
|
|
@ -202,10 +203,14 @@ public class PowersParser { |
|
|
|
while (matcher1.find()) |
|
|
|
while (matcher1.find()) |
|
|
|
arguments.add(matcher1.group().trim()); |
|
|
|
arguments.add(matcher1.group().trim()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
argumentIterator = arguments.iterator(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while (argumentIterator.hasNext()) { |
|
|
|
equipmentPreReq.slot = mbEnums.EquipSlotType.valueOf(arguments.get(0)); |
|
|
|
equipmentPreReq.slot = mbEnums.EquipSlotType.valueOf(arguments.get(0)); |
|
|
|
equipmentPreReq.skill = arguments.get(1).replaceAll("\"", ""); |
|
|
|
equipmentPreReq.skill = arguments.get(1).replaceAll("\"", ""); |
|
|
|
equipmentPreReq.level = Integer.parseInt(arguments.get(2)); |
|
|
|
equipmentPreReq.required = Integer.parseInt(arguments.get(2)); |
|
|
|
powerEntry.equipmentPreReq = equipmentPreReq; |
|
|
|
powerEntry.equipmentPreReq.add(equipmentPreReq); |
|
|
|
|
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "CANCASTWHILEMOVING": |
|
|
|
case "CANCASTWHILEMOVING": |
|
|
|
powerEntry.canCastWhileMoving = Boolean.parseBoolean(lineValues.get(1).trim()); |
|
|
|
powerEntry.canCastWhileMoving = Boolean.parseBoolean(lineValues.get(1).trim()); |
|
|
|