-
Notifications
You must be signed in to change notification settings - Fork 81
LGPE Snorlax #583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LGPE Snorlax #583
Conversation
| default: | ||
| throw InternalProgramError( | ||
| &env.logger(), PA_CURRENT_FUNCTION, | ||
| "Not such sound detector as sound type " + std::to_string((size_t)type) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"No such sound..."
| ret.emplace_back(make_single_switch_program<AlolanTrade_Descriptor, AlolanTrade>()); | ||
| ret.emplace_back(make_single_switch_program<FossilRevival_Descriptor, FossilRevival>()); | ||
| ret.emplace_back(make_single_switch_program<GiftReset_Descriptor, GiftReset>()); | ||
| ret.emplace_back(make_single_switch_program<LegendaryReset_Descriptor, LegendaryReset>()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's put this one under dev or beta until the auto-battle is added since the program won't be as useful until then.
It might also be worth experimenting with changing the clock to see if that does anything to stop the timer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing clock doesn't work.
Static legendaries don't run once the battle phase is done. The battle arrow looks like its reused in the catching menus, so I should have a solution soon. this is done.
| pbf_mash_button(context, BUTTON_A, 15000ms); | ||
| break; | ||
| case Target::snorlax2: | ||
| pbf_mash_button(context, BUTTON_A, 25000ms); //can't test, not really worth it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these need to mash A for fixed durations? Can you mash A for a short amount of time, then mash B until you see the battle menu?
Legendary Reset, except I'm only at Snorlax so wrote and tested on that. Shouldn't need too many changes to adjust for Mewtwo/Articuno/Zapdos/Moltres(skip cutscene button?). Opening this PR now since I don't know how long it'll take for me to get to the legendaries.
Possible future changes: improvements to the arrow detection. Also auto-killing the target. Because the battle timer doesn't stop while on the home menu. Or when the switch is in sleep mode. (Why???)
Shiny sound + battle arrow: PokemonAutomation/Packages#34
Sound recorded by muting music and cries in game.