summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDabomstew <dbs.stew@gmail.com>2016-08-11 09:50:46 +1200
committerDabomstew <dbs.stew@gmail.com>2016-08-11 09:50:46 +1200
commit49e1d38991ee5339400abfc482e08d4cdfc3aacd (patch)
treeb3df554608f1eef3badffca99d17a300594a3a1e
parent9e316a81b27d3d02157de5e9a608413238381688 (diff)
Fix move category randomization for Gen 4
-rwxr-xr-xsrc/com/dabomstew/pkrandom/romhandlers/Gen4RomHandler.java1
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);