From 3f8aa32d12867fcc8caef2a7fb714f494292045d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Mon, 5 Jan 2026 15:58:51 +0000 Subject: [PATCH] beans: fix generation for starting with planted beans (#6099) beans is 0 in inventory, confusing CanPlantBeanCheck, check for this specific scenario in BeanPlanted to mitigate --- soh/soh/Enhancements/randomizer/location_access.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/soh/soh/Enhancements/randomizer/location_access.cpp b/soh/soh/Enhancements/randomizer/location_access.cpp index 2a6e571c4..05f3851dd 100644 --- a/soh/soh/Enhancements/randomizer/location_access.cpp +++ b/soh/soh/Enhancements/randomizer/location_access.cpp @@ -786,6 +786,8 @@ bool BeanPlanted(const RandomizerGet bean) { // flag irrelevant if plant won't spawn if (!logic->HasItem(bean)) { return false; + } else if (ctx->GetOption(RSK_SKIP_PLANTING_BEANS) && ctx->GetOption(RSK_STARTING_BEANS)) { + return true; } // swchFlag found using the Actor Viewer to get the Obj_Bean parameters & 0x3F