Skip to content

Commit f0caabe

Browse files
author
Gin
committed
fix
1 parent 79ae8d7 commit f0caabe

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,6 @@ void hunt_cobalion(
115115
ShinyHunt_HyperspaceLegendary_Descriptor::Stats& stats,
116116
SimpleIntegerOption<uint16_t>& MIN_CALORIE_TO_CATCH)
117117
{
118-
119-
// Spawn refreshing loop takes 14 sec. Going to check Cobalion takes 13 sec.
120-
// 10 for 10 cal per sec
121-
const uint16_t min_calorie = MIN_CALORIE_TO_CATCH + (14 + 13) * 10;
122-
123-
HyperspaceCalorieWatcher calorie_watcher(env.logger());
124118
while(true){
125119
// run to the right to spawn in Cobalion
126120
ssf_press_button(context, BUTTON_B, 0ms, 6000ms, 0ms);
@@ -136,7 +130,11 @@ void hunt_cobalion(
136130

137131
stats.spawns++;
138132
env.update_stats();
139-
if (check_calorie(env, context, calorie_watcher, min_calorie)){
133+
// Spawn refreshing loop takes 14 sec. Going to check Cobalion takes 13 sec.
134+
// 10 for 10 cal per sec
135+
const uint16_t min_calorie = MIN_CALORIE_TO_CATCH + (14 + 13) * 10;
136+
137+
if (check_calorie(env.console, context, min_calorie)){
140138
break;
141139
}
142140
}

0 commit comments

Comments
 (0)