Skip to content

Commit 9187db0

Browse files
authored
LZA: ShuttleRun - update skrelp hunt & add more routes (#863)
Co-authored-by: Ȇ✠Saͥbͣeͫr👑Ⰰ <naussika@users.noreply.github.com>
1 parent bbbef6f commit 9187db0

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

SerialPrograms/Source/PokemonLZA/Programs/ShinyHunting/PokemonLZA_ShuttleRun.cpp

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ ShinyHunt_ShuttleRun::ShinyHunt_ShuttleRun()
6363
{Routes::KLEFKI_INKAY_GOOMY, "klefki_inkay_goomy", "Sewers: Klefki+Inkay+Goomy"},
6464
{Routes::LITWICK, "litwick", "Sewers: Litwick"},
6565
{Routes::SKRELP, "skrelp", "Sewers: Skrelp"},
66+
{Routes::SKRELP_INKAY, "skrelp_inkay", "Sewers: Skrelp+Inkay"},
67+
{Routes::SKRELP_ARIADOS, "skrelp_ariados", "Sewers: Skrelp+Ariados"},
6668
// {Routes::SCRAGGY, "scraggy", "Sewers: Scraggy"},
6769
},
6870
LockMode::LOCK_WHILE_RUNNING,
@@ -122,15 +124,28 @@ void route_litwick(SingleSwitchProgramEnvironment& env, ProControllerContext& co
122124
}
123125

124126
void route_skrelp(SingleSwitchProgramEnvironment& env, ProControllerContext& context){
127+
context.wait_for_all_requests();
128+
fly_back(env.console, context);
129+
pbf_wait(context, 1000ms);
130+
}
131+
132+
void route_skrelp_inkay(SingleSwitchProgramEnvironment& env, ProControllerContext& context){
133+
context.wait_for_all_requests();
134+
ssf_press_button(context, BUTTON_B, 0ms, 500ms, 0ms);
135+
pbf_move_left_joystick(context, 128, 0, 3900ms, 0ms);
136+
fly_back(env.console, context);
137+
}
138+
139+
void route_skrelp_ariados(SingleSwitchProgramEnvironment& env, ProControllerContext& context){
125140
context.wait_for_all_requests();
126141
ssf_press_button(context, BUTTON_B, 0ms, 500ms, 0ms);
127-
pbf_move_left_joystick(context, 128, 255, 5000ms, 0ms);
128-
pbf_move_left_joystick(context, 128, 0, 5500ms, 0ms);
142+
pbf_move_left_joystick(context, 128, 0, 6000ms, 0ms);
143+
pbf_move_left_joystick(context, 128, 255, 6500ms, 0ms);
129144
pbf_wait(context, 500ms);
130145
}
131146

132147
void route_scraggy(SingleSwitchProgramEnvironment& env, ProControllerContext& context){
133-
148+
//TODO
134149
}
135150
} // namespace
136151

@@ -163,6 +178,12 @@ void ShinyHunt_ShuttleRun::program(SingleSwitchProgramEnvironment& env, ProContr
163178
case Routes::SKRELP:
164179
loop = route_skrelp;
165180
break;
181+
case Routes::SKRELP_INKAY:
182+
loop = route_skrelp_inkay;
183+
break;
184+
case Routes::SKRELP_ARIADOS:
185+
loop = route_skrelp_ariados;
186+
break;
166187
case Routes::SCRAGGY:
167188
loop = route_scraggy;
168189
break;

SerialPrograms/Source/PokemonLZA/Programs/ShinyHunting/PokemonLZA_ShuttleRun.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ class ShinyHunt_ShuttleRun : public SingleSwitchProgramInstance {
3939
KLEFKI_INKAY_GOOMY,
4040
LITWICK,
4141
SKRELP,
42+
SKRELP_INKAY,
43+
SKRELP_ARIADOS,
4244
SCRAGGY,
4345
WILD_ZONE_19,
4446
FIRE_STARTERS,

0 commit comments

Comments
 (0)