Browse Source

Variables mirror executable

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

28
src/engine/wpak/PowerEntry.java

@ -13,23 +13,23 @@ public class PowerEntry {
public String power_id; public String power_id;
public String power_name; public String power_name;
public String power_type; public String power_type;
public int skill_id; public int icon;
public String skill_name; public String powerbase;
public String target_type; public String target_type;
public int range; public int range;
public String radiusType; public String areaType;
public int radius; public int areaRange;
public String groupReq; public String excludeType;
public String costType; public String costType;
public float cost; public float cost;
public int unknown01; public int difficulty;
public int unknown02; public int precision;
public float cast_time; public float init_time;
public float cool_down; public float release_time;
public float recycle_time; public float recycle_time;
public int unknown03; public int hitRollYN;
public String combatRequirement; public String castingMode;
public int unknown04; public int initAmin;
public int unknown05; public int releaseAnim;
public String targetRequirement; public String targetSelect;
} }

28
src/engine/wpak/PowersParser.java

@ -69,25 +69,25 @@ public class PowersParser {
powerEntry.power_name = powerHeader.get(1).replaceAll("\"", ""); powerEntry.power_name = powerHeader.get(1).replaceAll("\"", "");
powerEntry.power_type = powerHeader.get(2); powerEntry.power_type = powerHeader.get(2);
powerEntry.skill_id = Integer.parseInt(powerHeader.get(3)); powerEntry.icon = Integer.parseInt(powerHeader.get(3));
powerEntry.skill_name = powerHeader.get(4).replaceAll("\"", ""); powerEntry.powerbase = powerHeader.get(4).replaceAll("\"", "");
powerEntry.target_type = powerHeader.get(5); powerEntry.target_type = powerHeader.get(5);
powerEntry.range = Integer.parseInt(powerHeader.get(6)); powerEntry.range = Integer.parseInt(powerHeader.get(6));
powerEntry.radiusType = powerHeader.get(7); powerEntry.areaType = powerHeader.get(7);
powerEntry.radius = Integer.parseInt(powerHeader.get(8)); powerEntry.areaRange = Integer.parseInt(powerHeader.get(8));
powerEntry.groupReq = powerHeader.get(9); powerEntry.excludeType = powerHeader.get(9);
powerEntry.costType = powerHeader.get(10); powerEntry.costType = powerHeader.get(10);
powerEntry.cost = Float.parseFloat(powerHeader.get(11)); powerEntry.cost = Float.parseFloat(powerHeader.get(11));
powerEntry.unknown01 = Integer.parseInt(powerHeader.get(12)); powerEntry.difficulty = Integer.parseInt(powerHeader.get(12));
powerEntry.unknown02 = Integer.parseInt(powerHeader.get(13)); powerEntry.precision = Integer.parseInt(powerHeader.get(13));
powerEntry.cast_time = Float.parseFloat(powerHeader.get(14)); powerEntry.init_time = Float.parseFloat(powerHeader.get(14));
powerEntry.cool_down = Float.parseFloat(powerHeader.get(15)); powerEntry.release_time = Float.parseFloat(powerHeader.get(15));
powerEntry.recycle_time = Float.parseFloat(powerHeader.get(16)); powerEntry.recycle_time = Float.parseFloat(powerHeader.get(16));
powerEntry.unknown03 = Integer.parseInt(powerHeader.get(17)); powerEntry.hitRollYN = Integer.parseInt(powerHeader.get(17));
powerEntry.combatRequirement = powerHeader.get(18); powerEntry.castingMode = powerHeader.get(18);
powerEntry.unknown04 = Integer.parseInt(powerHeader.get(19)); powerEntry.initAmin = Integer.parseInt(powerHeader.get(19));
powerEntry.unknown05 = Integer.parseInt(powerHeader.get(20)); powerEntry.releaseAnim = Integer.parseInt(powerHeader.get(20));
powerEntry.targetRequirement = powerHeader.get(21); powerEntry.targetSelect = powerHeader.get(21);
for (int x = 2; x < powerEntries.length; x++) { for (int x = 2; x < powerEntries.length; x++) {

Loading…
Cancel
Save