Skip to content

Commit 516934d

Browse files
committed
timing fixes
1 parent 5706733 commit 516934d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

SerialPrograms/Source/PokemonLGPE/Programs/ShinyHunting/PokemonLGPE_FossilRevival.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,22 +92,23 @@ FossilRevival::FossilRevival()
9292
void FossilRevival::run_revives(SingleSwitchProgramEnvironment& env, JoyconContext& context){
9393
//Press A to get to selection
9494
env.log("Starting dialog.");
95-
pbf_press_button(context, BUTTON_A, 100ms, 500ms);
95+
pbf_press_button(context, BUTTON_A, 100ms, 800ms);
96+
pbf_wait(context, 1000ms); //Wait for scientist to turn and face player
97+
context.wait_for_all_requests();
9698
pbf_press_button(context, BUTTON_A, 100ms, 500ms);
9799
pbf_press_button(context, BUTTON_A, 100ms, 500ms);
98100
pbf_press_button(context, BUTTON_A, 100ms, 500ms);
99101
pbf_press_button(context, BUTTON_A, 100ms, 500ms);
100102
context.wait_for_all_requests();
101103

102-
pbf_wait(context, 700ms);
104+
pbf_wait(context, 500ms);
103105
context.wait_for_all_requests();
104106

105107
//Select fossil slot
106108
env.log("Selecting fossil.");
107109
for (uint16_t c = 0; c < (uint16_t)SLOT.current_value(); c++){
108110
pbf_move_joystick(context, 128, 255, 100ms, 200ms);
109111
}
110-
pbf_press_button(context, BUTTON_A, 200ms, 300ms);
111112
context.wait_for_all_requests();
112113

113114
//Mash A until revival over
@@ -155,7 +156,7 @@ void FossilRevival::run_revives(SingleSwitchProgramEnvironment& env, JoyconConte
155156
}
156157

157158
//Close out come back soon text.
158-
pbf_mash_button(context, BUTTON_B, 500ms);
159+
pbf_mash_button(context, BUTTON_B, 1000ms);
159160
context.wait_for_all_requests();
160161
}
161162

@@ -168,7 +169,8 @@ void FossilRevival::program(SingleSwitchProgramEnvironment& env, CancellableScop
168169
Settings:
169170
Text speed fast
170171
171-
is first time dialog different?
172+
is first time dialog different? clear it out first.
173+
selection dialog still appears if only one fossil type
172174
173175
Setup:
174176
Stand in front of the scientist in cinnebar.

0 commit comments

Comments
 (0)