From ffcfbf7fd86db1342e44b2c68db1fdaca76bdf7a Mon Sep 17 00:00:00 2001 From: ShinyTillDawn Date: Wed, 16 Jul 2025 23:04:53 -0400 Subject: [PATCH] Added the constant for what level eggs hatch at. (#272) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Started adding the egg-hatch level constants. Added the offsets for Ruby & Sapphire so far. These addresses are all the same, apart from v1.1 increasing all of them by 0x20. Credits: Jambo51 and VersekrDark (with the help of ModExe Ruby) The anchor name could change. * Added the lines for FireRed, LeafGreen, & Emerald. I also specified the domain of valid levels in the comments. According to the PokéCommunity thread (linked in the Pull Request description), the game bugs out when choosing a constant greater than 100. Credits: Jambo51 & Wobbu --- src/HexManiac.Core/Models/Code/constantReference.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/HexManiac.Core/Models/Code/constantReference.txt b/src/HexManiac.Core/Models/Code/constantReference.txt index 19465629..9e0755fa 100644 --- a/src/HexManiac.Core/Models/Code/constantReference.txt +++ b/src/HexManiac.Core/Models/Code/constantReference.txt @@ -534,3 +534,13 @@ BPGE0.scripts.seagallop.count-1 147124 BPRE1.scripts.seagallop.count-1 1471C0 BPGE1.scripts.seagallop.count-1 14719C +# What level Pokémon eggs hatch at +AXVE0.scripts.daycare.hatchlevel 042068,042132,042954,0A080C # You can change the level at which eggs hatch. Choose a level between 1 and 100. +AXPE0.scripts.daycare.hatchlevel 042068,042132,042954,0A080C # You can change the level at which eggs hatch. Choose a level between 1 and 100. +AXVE1.scripts.daycare.hatchlevel 042088,042152,042974,0A082C # You can change the level at which eggs hatch. Choose a level between 1 and 100. +AXPE1.scripts.daycare.hatchlevel 042088,042152,042974,0A082C # You can change the level at which eggs hatch. Choose a level between 1 and 100. +BPRE0.scripts.daycare.hatchlevel 04623E,046CBE,1375B0 # You can change the level at which eggs hatch. Choose a level between 1 and 100. +BPGE0.scripts.daycare.hatchlevel 04623E,046CBE,137588 # You can change the level at which eggs hatch. Choose a level between 1 and 100. +BPRE1.scripts.daycare.hatchlevel 046252,046CD2,137628 # You can change the level at which eggs hatch. Choose a level between 1 and 100. +BPGE1.scripts.daycare.hatchlevel 046252,046CD2,137600 # You can change the level at which eggs hatch. Choose a level between 1 and 100. +BPEE0.scripts.daycare.hatchlevel 070A38,071414,1C3200 # You can change the level at which eggs hatch. Choose a level between 1 and 100. \ No newline at end of file