Browse Source

Sometimes bad floats.

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

4
src/engine/wpak/PowersParser.java

@ -95,8 +95,8 @@ public class PowersParser {
powerEntry.costType = iterator.next(); powerEntry.costType = iterator.next();
powerEntry.cost = Float.parseFloat(iterator.next()); powerEntry.cost = Float.parseFloat(iterator.next());
powerEntry.difficulty = Float.parseFloat(iterator.next()); powerEntry.difficulty = Float.parseFloat(iterator.next());
powerEntry.precision = Float.parseFloat(iterator.next().replaceAll("(\\.0)+$", "")); powerEntry.precision = Float.parseFloat(iterator.next());
powerEntry.init_time = Float.parseFloat(iterator.next()); powerEntry.init_time = Float.parseFloat(iterator.next().replaceAll("(\\.0)+$", ""));
powerEntry.release_time = Float.parseFloat(iterator.next()); powerEntry.release_time = Float.parseFloat(iterator.next());
powerEntry.recycle_time = Float.parseFloat(iterator.next()); powerEntry.recycle_time = Float.parseFloat(iterator.next());
powerEntry.hitRollYN = Integer.parseInt(iterator.next()); powerEntry.hitRollYN = Integer.parseInt(iterator.next());

Loading…
Cancel
Save