From 9a24300ec0cd001390e9d6676fc7cb141aa0bd87 Mon Sep 17 00:00:00 2001 From: tom-overton Date: Sun, 2 Oct 2022 06:52:42 -0700 Subject: Gen 7: Fix issue where Shedinja will sometimes not be generated --- src/com/sneed/pkrandom/romhandlers/Gen7RomHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/sneed/pkrandom/romhandlers/Gen7RomHandler.java b/src/com/sneed/pkrandom/romhandlers/Gen7RomHandler.java index 26ba4ae..11e0dc0 100644 --- a/src/com/sneed/pkrandom/romhandlers/Gen7RomHandler.java +++ b/src/com/sneed/pkrandom/romhandlers/Gen7RomHandler.java @@ -927,7 +927,7 @@ public class Gen7RomHandler extends Abstract3DSRomHandler { int offset = find(code, Gen7Constants.ninjaskSpeciesPrefix); if (offset > 0) { offset += Gen7Constants.ninjaskSpeciesPrefix.length() / 2; // because it was a prefix - FileFunctions.writeFullInt(code, offset, primaryEvolution.number); + FileFunctions.writeFullInt(code, offset, primaryEvolution.getBaseNumber()); } // In the game's executable, there's a hardcoded value to indicate what "extra" -- cgit v1.2.3