Repository navigation
Conversation
Dalton-V
force-pushed
the
frlg-box-organization
branch
from
November 2, 2026 02:08
ad2c90c to
290e545
Compare
Dalton-V
force-pushed
the
frlg-box-organization
branch
from
November 2, 2026 02:13
290e545 to
300fa2f
Compare
Dalton-V
marked this pull request as ready for review
November 2, 2026 02:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Splitting the FRLG Box Sorter PR - 8
Helper methods for box navigation, sorting, and efficient swapping.
While these methods could live in the box sorter programs I placed them here for easier testing. (Large testing file coming later). Some of these methods will be reused in the Living Dex Sorter as well.
move_cursor_to()similar to the other move cursor methods in Home and LZA with slight tweaks for FRLG controls and detection of FRLG specific cursor "Selection Hand"wait_for_summary_animation()when scrolling through the summary page the pokemon "bounces" for a moment, wait for that to finish to know when to attempt the next summary read.scan_box_summaries()after reading each cell in a box loop through the summary screens in reverse ending back at the first occupied cell.make_box_sorting_plan()More efficient than the current insertion sort that we use in the other box sorters. This creates a chain as swapping in FRLG the pokemon is set down and picked up at the same time. Meaning we are always holding a pokemon instead of them swapping locations instantly.scan_box_data()unlike Home where we can detect what cells are occupied from the sprites of the pokemon in the box we detect occupied by hovering over each cell and seeing if there are colored pixels for the name/level of each cell. Loop through each cell and record the available information. If extra info is needed (shiny) also open the summary page and loop through that.execute_box_sorting_plan()loop through the chains created in 'make_box_sorting_plan()'