Skip to content

Separate out common patterns in FRLG RNG programs - #1291

Merged
Mysticial merged 2 commits into
PokemonAutomation:mainfrom
theastrogoth:rng-cleanup
Jun 18, 2026
Merged

Separate out common patterns in FRLG RNG programs#1291
Mysticial merged 2 commits into
PokemonAutomation:mainfrom
theastrogoth:rng-cleanup

Conversation

@theastrogoth

@theastrogoth theastrogoth commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

This takes repeated snippets and patterns across the FRLG RNG programs and moves them to PokemonFRLG_RngLoopRoutines. The most aggressive change involves the Rare Candy loop for leveling up and narrowing IV ranges -- behavior should still be the same, though.

More lines are added than removed, but that's due to a the addition here of some potentially reusable patterns in the Egg RNG program (#1280). These are moved to PokemonFRLG_RngLoopRoutines to avoid a really bloated file for the egg program. For the same reason, some of the navigation functions (currently) specific to the egg program were moved to PokemonFRLG_RngNavigation.

@Mysticial
Mysticial merged commit 141b11d into PokemonAutomation:main Jun 18, 2026
7 checks passed
@theastrogoth
theastrogoth deleted the rng-cleanup branch June 19, 2026 22:17
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