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