Browse Source

Sometimes bad floats.

feature-config-parsing2
MagicBot 3 months ago
parent
commit
462f6725b6
  1. 2
      src/engine/wpak/PowersParser.java

2
src/engine/wpak/PowersParser.java

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

Loading…
Cancel
Save