Commit 039e901
SwSh Egg program refactor (PokemonAutomation#1336)
* turn run_batch() into state machine
* add NUM_EGGS_IN_PARTY, which affects number of eggs fetched on the first batch
* add SwSh::save_game()
* add watchers to confirm starting conditions for routines
* refactor talk_to_lady_to_fetch_egg
* refactor run_bike_loop
* fix bike loop routine
* add EmptySlotDetector. add check_box()
* run check_box() at the start of the program, and after every process_hatched_pokemon()
* fix initialization of num_eggs_retrieved and total_eggs_to_fetch
* add recovery routine if never spoke to lady. reset position.
* update logging
* check eggs in box, before process_hatched_pokemon()
* Change box view to judge or stats
* add parameter for number of expected eggs/empty slots
* update logging
* update comments
* change view to judge at beginning of program
* counting eggs and empty slots are split into separate functions
* update error message1 parent 81d1eaa commit 039e901
2 files changed
Lines changed: 588 additions & 230 deletions
File tree
- SerialPrograms/Source/PokemonSwSh/Programs/EggPrograms
0 commit comments