Browse Source

Values are floats

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

4
src/engine/wpak/PowerEntry.java

@ -21,8 +21,8 @@ public class PowerEntry { @@ -21,8 +21,8 @@ public class PowerEntry {
public String excludeType;
public String costType;
public float cost;
public int difficulty;
public int precision;
public float difficulty;
public float precision;
public float init_time;
public float release_time;
public float recycle_time;

4
src/engine/wpak/PowersParser.java

@ -94,8 +94,8 @@ public class PowersParser { @@ -94,8 +94,8 @@ public class PowersParser {
powerEntry.excludeType = iterator.next();
powerEntry.costType = iterator.next();
powerEntry.cost = Float.parseFloat(iterator.next());
powerEntry.difficulty = Integer.parseInt(iterator.next());
powerEntry.precision = Integer.parseInt(iterator.next());
powerEntry.difficulty = Float.parseFloat(iterator.next());
powerEntry.precision = Float.parseFloat(iterator.next());
powerEntry.init_time = Float.parseFloat(iterator.next());
powerEntry.release_time = Float.parseFloat(iterator.next());
powerEntry.recycle_time = Float.parseFloat(iterator.next());

Loading…
Cancel
Save