-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathPokemonLA_BraviaryHeightGlitch.cpp
More file actions
46 lines (34 loc) · 1.22 KB
/
PokemonLA_BraviaryHeightGlitch.cpp
File metadata and controls
46 lines (34 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* Braviary Height Glitch
*
* From: https://github.com/PokemonAutomation/
*
*/
#include "NintendoSwitch/Commands/NintendoSwitch_Commands_PushButtons.h"
#include "Pokemon/Pokemon_Strings.h"
#include "PokemonLA_BraviaryHeightGlitch.h"
namespace PokemonAutomation{
namespace NintendoSwitch{
namespace PokemonLA{
using namespace Pokemon;
BraviaryHeightGlitch_Descriptor::BraviaryHeightGlitch_Descriptor()
: SingleSwitchProgramDescriptor(
"PokemonLA:BraviaryHeightGlitch",
STRING_POKEMON + " LA", "Braviary Height Glitch",
"Programs/PokemonLA/BraviaryHeightGlitch.html",
"Increase your height in place using the height glitch.",
ProgramControllerClass::StandardController_NoRestrictions,
FeedbackType::NONE,
AllowCommandsWhenRunning::DISABLE_COMMANDS
)
{}
BraviaryHeightGlitch::BraviaryHeightGlitch(){}
void BraviaryHeightGlitch::program(SingleSwitchProgramEnvironment& env, ProControllerContext& context){
while (true){
pbf_press_button(context, BUTTON_Y, 240ms, 0ms);
pbf_press_button(context, BUTTON_PLUS, 240ms, 80ms);
pbf_press_button(context, BUTTON_PLUS, 240ms, 240ms);
}
}
}
}
}