This commit is contained in:
2024-08-17 15:31:45 -04:00
parent bf2174fbe5
commit 2a18b96d23
+2 -5
View File
@@ -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 {
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 {
// 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());