Browse Source

More poweraction parsing work.

feature-config-parsing2
MagicBot 3 months ago
parent
commit
1c6be6a1ea
  1. 2
      src/engine/wpak/PowerActionParser.java
  2. 2
      src/engine/wpak/data/StatTransfer.java

2
src/engine/wpak/PowerActionParser.java

@ -136,7 +136,7 @@ public class PowerActionParser { @@ -136,7 +136,7 @@ public class PowerActionParser {
statTransfer.fromStatBool = Boolean.parseBoolean(headerIterator.next());
statTransfer.toStatBool = Boolean.parseBoolean(headerIterator.next());
statTransfer.transfer_action = headerIterator.next();
statTransfer.tranfer_ticks = Integer.parseInt(headerIterator.next());
statTransfer.transfer_ticks = Integer.parseInt(headerIterator.next());
powerActionEntry.statTransfer = statTransfer;
break;
case "Charm":

2
src/engine/wpak/data/StatTransfer.java

@ -20,5 +20,5 @@ public class StatTransfer { @@ -20,5 +20,5 @@ public class StatTransfer {
public boolean fromStatBool;
public boolean toStatBool;
public String transfer_action;
public int tranfer_ticks;
public int transfer_ticks;
}

Loading…
Cancel
Save