Skip to content

FRLG Egg RNG Program - #1280

Merged
Mysticial merged 25 commits into
PokemonAutomation:mainfrom
theastrogoth:egg-rng-program
Jun 19, 2026
Merged

FRLG Egg RNG Program#1280
Mysticial merged 25 commits into
PokemonAutomation:mainfrom
theastrogoth:egg-rng-program

Conversation

@theastrogoth

@theastrogoth theastrogoth commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

This adds an RNG program for hatching eggs at the Four Island daycare.

It's a bit more complicated than the other RNG programs in a few ways:

  • There are two different frames that need to be hit rather than one
    • This makes it necessary to save the game after (hopefully) hitting the first frame
    • I've tried to make it unlikely that the program saves and commits to a bad egg, but it's not totally guaranteed
  • The target's IVs are influenced by the parents
  • There are some frames that do not generate an egg, making calibration harder
  • Ten Lines does not support searching for good frames for Egg RNG, and using PokeFinder is kind of a pain

On the plus side, it makes it possible to obtain shiny Pokemon with any IVs and nature, regardless of your TID and SID, which isn't true of any Gift/Wild Pokemon.

There are also some small changes to things that are shared with other RNG programs. When this is ready, I'll open a separate PR with the tweaks that affect shared code. Done

@theastrogoth
theastrogoth marked this pull request as draft June 6, 2026 02:28
@theastrogoth

Copy link
Copy Markdown
Contributor Author

Changes made in shared code are handled by #1283

@theastrogoth
theastrogoth marked this pull request as ready for review June 8, 2026 02:07
@theastrogoth
theastrogoth marked this pull request as draft June 10, 2026 15:53
@theastrogoth

Copy link
Copy Markdown
Contributor Author

After #1286, I think this is ready for a private beta!

@theastrogoth
theastrogoth marked this pull request as ready for review June 12, 2026 02:34
@@ -0,0 +1,1443 @@
/* Egg RNG

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is huge. If you want to break this up into smaller files, feel free to do that. Probably a lot of helper functions that can be extracted? Since I think we might have more egg routines like this in the future.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tried to tidy things up a bit. Since this affected some other RNG programs, this has mostly been separated out into #1291

This file is still big after the reusable parts have been elsewhere, but hopefully a little bit more readable

@Mysticial
Mysticial merged commit 3f323de into PokemonAutomation:main Jun 19, 2026
7 checks passed
@theastrogoth
theastrogoth deleted the egg-rng-program branch June 19, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants