diff options
author | Deokishisu <6993375+Deokishisu@users.noreply.github.com> | 2021-02-16 16:43:31 -0500 |
---|---|---|
committer | Deokishisu <6993375+Deokishisu@users.noreply.github.com> | 2021-02-16 16:43:31 -0500 |
commit | a1138223e9a88d68666cf361a1adfa7cb3776929 (patch) | |
tree | 63a6a57d8bc1e4dc2e40322385da1742f5766203 /src/egg_hatch.c | |
parent | c7bbd485c3103c6a51d15f6e0081922d3c14d42d (diff) |
Mirror pokeemerald PR#1329 & PR#1335 to pokeruby
The `externalReservedData` field has been split up into `externalEventData` and `externalEventFlags`, which have their own structs. The new structs deal with interconnectivity between external games/peripherals and RS. US & JP Colosseum Bonus Discs', Colosseum and XD's, Pokémon Channel's, and PokémonBox: Ruby & Sapphire's interactions with these fields has been documented.
The `giftRibbon#` fields in `PokemonSubstruct3` have also been renamed to their appropriate ribbons, and commented with distribution info if applicable. All relevant constants and functions dealing with the Pokémon data structure were renamed with these changes in mind.
Diffstat (limited to 'src/egg_hatch.c')
-rw-r--r-- | src/egg_hatch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/egg_hatch.c b/src/egg_hatch.c index 24c2340ac..fdc12129e 100644 --- a/src/egg_hatch.c +++ b/src/egg_hatch.c @@ -241,6 +241,7 @@ static void CreatedHatchedMon(struct Pokemon *egg, struct Pokemon *temp) gameMet = GetMonData(egg, MON_DATA_MET_GAME); markings = GetMonData(egg, MON_DATA_MARKINGS); pokerus = GetMonData(egg, MON_DATA_POKERUS); + //FRLGE also copy the eventLegal field to the hatched Pokemon. PCNY Wish Eggs traded to RS and hatched will not have their eventLegal bit set and will not be Fateful Encounters in future games. CreateMon(temp, species, EGG_HATCH_LEVEL, 32, TRUE, personality, 0, 0); |