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 {
} }
} }
private static <Iterator> PowerEntry parsePowerEntry(String powerData) { private static PowerEntry parsePowerEntry(String powerData) {
PowerEntry powerEntry = new PowerEntry(); PowerEntry powerEntry = new PowerEntry();
@ -69,7 +68,6 @@ public class PowersParser {
PowerData power = new PowerData(); PowerData power = new PowerData();
power.power_type = iterator.next(); power.power_type = iterator.next();
;
power.icon = Integer.parseInt(iterator.next()); power.icon = Integer.parseInt(iterator.next());
power.powerBase = iterator.next().replaceAll("\"", ""); power.powerBase = iterator.next().replaceAll("\"", "");
powerEntry.powers.add(power); powerEntry.powers.add(power);
@ -78,8 +76,7 @@ public class PowersParser {
// Account for second definition // Account for second definition
if (powerEntry.target_type.equals("SPELL") || if (powerEntry.target_type.equals("SPELL") || powerEntry.target_type.equals("SKILL")) {
powerEntry.target_type.equals("SKILL")) {
power = new PowerData(); power = new PowerData();
power.power_type = powerEntry.target_type; power.power_type = powerEntry.target_type;
power.icon = Integer.parseInt(iterator.next()); power.icon = Integer.parseInt(iterator.next());

Loading…
Cancel
Save