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
This commit is contained in:
Philip Dubé
2026-01-05 15:58:51 +00:00
committed by GitHub
parent 7c4a3359f0
commit 3f8aa32d12

View File

@@ -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