|
|
|
@ -42,8 +42,7 @@ public class PowersParser {
@@ -42,8 +42,7 @@ public class PowersParser {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static <Iterator> PowerEntry parsePowerEntry(String powerData) { |
|
|
|
|
|
|
|
|
|
private static PowerEntry parsePowerEntry(String powerData) { |
|
|
|
|
|
|
|
|
|
PowerEntry powerEntry = new PowerEntry(); |
|
|
|
|
|
|
|
|
@ -69,7 +68,6 @@ public class PowersParser {
@@ -69,7 +68,6 @@ public class PowersParser {
|
|
|
|
|
|
|
|
|
|
PowerData power = new PowerData(); |
|
|
|
|
power.power_type = iterator.next(); |
|
|
|
|
; |
|
|
|
|
power.icon = Integer.parseInt(iterator.next()); |
|
|
|
|
power.powerBase = iterator.next().replaceAll("\"", ""); |
|
|
|
|
powerEntry.powers.add(power); |
|
|
|
@ -78,8 +76,7 @@ public class PowersParser {
@@ -78,8 +76,7 @@ public class PowersParser {
|
|
|
|
|
|
|
|
|
|
// Account for second definition
|
|
|
|
|
|
|
|
|
|
if (powerEntry.target_type.equals("SPELL") || |
|
|
|
|
powerEntry.target_type.equals("SKILL")) { |
|
|
|
|
if (powerEntry.target_type.equals("SPELL") || powerEntry.target_type.equals("SKILL")) { |
|
|
|
|
power = new PowerData(); |
|
|
|
|
power.power_type = powerEntry.target_type; |
|
|
|
|
power.icon = Integer.parseInt(iterator.next()); |
|
|
|
@ -106,10 +103,10 @@ public class PowersParser {
@@ -106,10 +103,10 @@ public class PowersParser {
|
|
|
|
|
powerEntry.targetSelect = iterator.next(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int x = 2; x < powerEntries.length; x++) { |
|
|
|
|
// Parse key/pair values
|
|
|
|
|
// via switch
|
|
|
|
|
} |
|
|
|
|
for (int x = 2; x < powerEntries.length; x++) { |
|
|
|
|
// Parse key/pair values
|
|
|
|
|
// via switch
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
Logger.error(powerEntry.power_id); |
|
|
|
|