Browse Source

More PowerEntry parsing work.

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

5
src/engine/wpak/PowerEntry.java

@ -27,4 +27,9 @@ public class PowerEntry { @@ -27,4 +27,9 @@ public class PowerEntry {
public float cast_time;
public float cool_down;
public float recycle_time;
public int unknown03;
public String combatRequirement;
public int unknown04;
public int unknown05;
public String targetRequirement;
}

6
src/engine/wpak/PowersParser.java

@ -74,7 +74,11 @@ public class PowersParser { @@ -74,7 +74,11 @@ public class PowersParser {
powerEntry.cast_time = Float.parseFloat(powerHeader.get(14));
powerEntry.cool_down = Float.parseFloat(powerHeader.get(15));
powerEntry.recycle_time = Float.parseFloat(powerHeader.get(16));
powerEntry.unknown03 = Integer.parseInt(powerHeader.get(17));
powerEntry.combatRequirement = powerHeader.get(18);
powerEntry.unknown04 = Integer.parseInt(powerHeader.get(19));
powerEntry.unknown05 = Integer.parseInt(powerHeader.get(20));
powerEntry.targetRequirement = powerHeader.get(21);
for (int x = 2; x < powerEntries.length; x++) {
// Parse key/pair values

Loading…
Cancel
Save