Browse Source

Parm changed to float.

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

2
src/engine/wpak/PowerEntry.java

@ -21,7 +21,7 @@ public class PowerEntry { @@ -21,7 +21,7 @@ public class PowerEntry {
public int radius;
public String groupReq;
public String costType;
public int cost;
public float cost;
public int unknown01;
public int unknown02;
public float cast_time;

2
src/engine/wpak/PowersParser.java

@ -68,7 +68,7 @@ public class PowersParser { @@ -68,7 +68,7 @@ public class PowersParser {
powerEntry.radius = Integer.parseInt(powerHeader.get(8));
powerEntry.groupReq = powerHeader.get(9);
powerEntry.costType = powerHeader.get(10);
powerEntry.cost = Integer.parseInt(powerHeader.get(11));
powerEntry.cost = Float.parseFloat(powerHeader.get(11));
powerEntry.unknown01 = Integer.parseInt(powerHeader.get(12));
powerEntry.unknown02 = Integer.parseInt(powerHeader.get(13));
powerEntry.cast_time = Float.parseFloat(powerHeader.get(14));

Loading…
Cancel
Save