Browse Source

Variable renamed

feature-config-usage
MagicBot 1 week ago
parent
commit
402f608f7a
  1. 8
      src/engine/wpak/PowersParser.java
  2. 2
      src/engine/wpak/data/PowerEntry.java

8
src/engine/wpak/PowersParser.java

@ -105,7 +105,7 @@ public class PowersParser {
PowerEntry power = new PowerEntry(); PowerEntry power = new PowerEntry();
power.power_type = mbEnums.PowerType.valueOf(iterator.next()); power.power_type = mbEnums.PowerType.valueOf(iterator.next());
power.icon = Integer.parseInt(iterator.next()); power.icon = Integer.parseInt(iterator.next());
power.powerBase = iterator.next().replaceAll("\"", ""); power.focusLine = iterator.next().replaceAll("\"", "");
powerEntry.powers.add(power); powerEntry.powers.add(power);
String nextValue = iterator.next(); String nextValue = iterator.next();
@ -116,7 +116,7 @@ public class PowersParser {
power = new PowerEntry(); power = new PowerEntry();
power.power_type = mbEnums.PowerType.valueOf(nextValue); power.power_type = mbEnums.PowerType.valueOf(nextValue);
power.icon = Integer.parseInt(iterator.next()); power.icon = Integer.parseInt(iterator.next());
power.powerBase = iterator.next().replaceAll("\"", ""); power.focusLine = iterator.next().replaceAll("\"", "");
powerEntry.powers.add(power); powerEntry.powers.add(power);
powerEntry.target_type = mbEnums.PowerTargetType.valueOf(iterator.next()); powerEntry.target_type = mbEnums.PowerTargetType.valueOf(iterator.next());
} else } else
@ -153,9 +153,9 @@ public class PowersParser {
ActionEntry actionEntry; ActionEntry actionEntry;
List<String> arguments; List<String> arguments;
Matcher argumentMatcher; Matcher argumentMatcher;
if(power.powerBase.equalsIgnoreCase("none")) if (power.focusLine.equalsIgnoreCase("none"))
continue; continue;
String loggerString = "PARSING: " + power.powerBase + " KEY: " + key; String loggerString = "PARSING: " + power.focusLine + " KEY: " + key;
try { try {
switch (key) { switch (key) {
case "ACTION": case "ACTION":

2
src/engine/wpak/data/PowerEntry.java

@ -13,5 +13,5 @@ import engine.mbEnums;
public class PowerEntry { public class PowerEntry {
public mbEnums.PowerType power_type; public mbEnums.PowerType power_type;
public int icon; public int icon;
public String powerBase; public String focusLine;
} }

Loading…
Cancel
Save