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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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