Browse Source

More PowerEntry parsing work

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

2
src/engine/wpak/PowerEntry.java

@ -16,4 +16,6 @@ public class PowerEntry { @@ -16,4 +16,6 @@ public class PowerEntry {
public int skill_id;
public String skill_name;
public String target_type;
public int range;
public String radiusType;
}

3
src/engine/wpak/PowersParser.java

@ -63,6 +63,9 @@ public class PowersParser { @@ -63,6 +63,9 @@ public class PowersParser {
powerEntry.skill_id = Integer.parseInt(powerHeader.get(3));
powerEntry.skill_name = powerHeader.get(4);
powerEntry.target_type = powerHeader.get(5);
powerEntry.range = Integer.parseInt(powerHeader.get(6));
powerEntry.radiusType = powerHeader.get(2);
for (int x = 2; x < powerEntries.length; x++) {
// Parse key/pair values

Loading…
Cancel
Save