Browse Source

Variables mirror executable

feature-config-parsing2
MagicBot 3 months ago
parent
commit
4d704d3ab0
  1. 2
      src/engine/wpak/PowerEntry.java
  2. 2
      src/engine/wpak/PowersParser.java

2
src/engine/wpak/PowerEntry.java

@ -11,7 +11,7 @@ package engine.wpak;
public class PowerEntry { public class PowerEntry {
public String power_id; public String power_id;
public String power_name; public String power;
public String power_type; public String power_type;
public int icon; public int icon;
public String powerbase; public String powerbase;

2
src/engine/wpak/PowersParser.java

@ -67,7 +67,7 @@ public class PowersParser {
if (powerHeader.size() != 21) if (powerHeader.size() != 21)
Logger.error(powerEntry.power_id); Logger.error(powerEntry.power_id);
powerEntry.power_name = powerHeader.get(1).replaceAll("\"", ""); powerEntry.power = powerHeader.get(1).replaceAll("\"", "");
powerEntry.power_type = powerHeader.get(2); powerEntry.power_type = powerHeader.get(2);
powerEntry.icon = Integer.parseInt(powerHeader.get(3)); powerEntry.icon = Integer.parseInt(powerHeader.get(3));
powerEntry.powerbase = powerHeader.get(4).replaceAll("\"", ""); powerEntry.powerbase = powerHeader.get(4).replaceAll("\"", "");

Loading…
Cancel
Save