Skip to content

Commit 36cd95a

Browse files
authored
Frlg Held Item Farmer - Safari Zone (#1304)
* Add option to hunt dragonair * rename lucky egg farmer to held item farmer - safari zone * Use resently added fishing encounter method * Use new party detector to know what pokemon to check for held item. Added user setup validation * Hide new item behind beta * Catch logic * Add logs attempt to recover from missed transitions * More recovery logic
1 parent 4025ef9 commit 36cd95a

6 files changed

Lines changed: 244 additions & 168 deletions

File tree

SerialPrograms/Source/CommonFramework/ProgramStats/StatsDatabase.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const std::map<std::string, std::string> STATS_DATABASE_ALIASES{
3737
{"PokemonSV:StatsResetBloodmoon", "PokemonSV:StatsResetEventBattle"},
3838
{"PokemonLZA:ShinyHunt-Bench", "PokemonLZA:ShinyHunt-BenchSit"},
3939
{"PokemonLZA:BerryBuyer", "PokemonLZA:StallBuyer"},
40+
{"PokemonFRLG:LuckyEggFarmer", "PokemonFRLG:HeldItemFarmerSafariZone"},
4041
};
4142

4243

SerialPrograms/Source/PokemonFRLG/PokemonFRLG_Navigation.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ int grass_spin(ConsoleHandle& console, ProControllerContext& context, bool leftr
122122
// returns -1 if no encounter is triggered, 0 if a non-shiny is encounter, and 1 if a shiny is encountered
123123
int fish_encounter(ConsoleHandle& console, ProControllerContext& context, Seconds timeout = 300s);
124124

125+
// tries to pull up the start menu to check if currently in the overworld
126+
bool in_overworld(ConsoleHandle& console, ProControllerContext& context);
127+
125128
// Automatically catch a Pokemon.
126129
// Returns -1 if there are detection issues, 0 if the Pokemon was not caught, and the number of balls thrown if it was caught.
127130
int auto_catch(

SerialPrograms/Source/PokemonFRLG/PokemonFRLG_Panels.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#include "PokemonFRLG_Panels.h"
1111

1212
#include "PokemonFRLG_Settings.h"
13+
#include "Programs/Farming/PokemonFRLG_HeldItemFarmer-SafariZone.h"
1314
#include "Programs/Farming/PokemonFRLG_ItemDuplication.h"
14-
#include "Programs/Farming/PokemonFRLG_LuckyEggFarmer.h"
1515
#include "Programs/Farming/PokemonFRLG_NuggetBridgeFarmer.h"
1616
#include "Programs/Farming/PokemonFRLG_PickupFarmer.h"
1717
#include "Programs/Farming/PokemonFRLG_EvTrainer.h"
@@ -59,7 +59,7 @@ std::vector<PanelEntry> PanelListFactory::make_panels() const{
5959
ret.emplace_back(make_single_switch_program<NuggetBridgeFarmer_Descriptor, NuggetBridgeFarmer>());
6060
ret.emplace_back(make_single_switch_program<PickupFarmer_Descriptor, PickupFarmer>());
6161
ret.emplace_back(make_single_switch_program<EvTrainer_Descriptor, EvTrainer>());
62-
ret.emplace_back(make_single_switch_program<LuckyEggFarmer_Descriptor, LuckyEggFarmer>());
62+
ret.emplace_back(make_single_switch_program<HeldItemFarmerSafariZone_Descriptor, HeldItemFarmerSafariZone>());
6363
ret.emplace_back(make_single_switch_program<ItemDuplication_Descriptor, ItemDuplication>());
6464

6565
//ret.emplace_back("---- General ----");

0 commit comments

Comments
 (0)