From 1153345d206e36af6a766c61a027d97d28ac9657 Mon Sep 17 00:00:00 2001 From: Demur Rumed Date: Mon, 5 Jan 2026 03:25:29 +0000 Subject: [PATCH] beans: fix generation for starting with planted beans 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 2a6e571c429..05f3851ddc2 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