diff options
author | Dabomstew <dbs.stew@gmail.com> | 2016-08-11 09:50:46 +1200 |
---|---|---|
committer | Dabomstew <dbs.stew@gmail.com> | 2016-08-11 09:50:46 +1200 |
commit | 49e1d38991ee5339400abfc482e08d4cdfc3aacd (patch) | |
tree | b3df554608f1eef3badffca99d17a300594a3a1e | |
parent | 9e316a81b27d3d02157de5e9a608413238381688 (diff) |
Fix move category randomization for Gen 4
-rwxr-xr-x | src/com/dabomstew/pkrandom/romhandlers/Gen4RomHandler.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/dabomstew/pkrandom/romhandlers/Gen4RomHandler.java b/src/com/dabomstew/pkrandom/romhandlers/Gen4RomHandler.java index 456ccba..8a66307 100755 --- a/src/com/dabomstew/pkrandom/romhandlers/Gen4RomHandler.java +++ b/src/com/dabomstew/pkrandom/romhandlers/Gen4RomHandler.java @@ -446,6 +446,7 @@ public class Gen4RomHandler extends AbstractDSRomHandler { for (int i = 1; i <= Gen4Constants.moveCount; i++) { byte[] data = moveNarc.files.get(i); writeWord(data, 0, moves[i].effectIndex); + data[2] = Gen4Constants.moveCategoryToByte(moves[i].category); data[3] = (byte) moves[i].power; data[4] = Gen4Constants.typeToByte(moves[i].type); int hitratio = (int) Math.round(moves[i].hitratio); |