Browse Source

Reformat

feature-config-parsing2
MagicBot 3 months ago
parent
commit
2a18b96d23
  1. 7
      src/engine/wpak/PowersParser.java

7
src/engine/wpak/PowersParser.java

@ -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());

Loading…
Cancel
Save