Skip to content

Commit 3f8aa32

Browse files
authored
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
1 parent 7c4a335 commit 3f8aa32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

soh/soh/Enhancements/randomizer/location_access.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,8 @@ bool BeanPlanted(const RandomizerGet bean) {
786786
// flag irrelevant if plant won't spawn
787787
if (!logic->HasItem(bean)) {
788788
return false;
789+
} else if (ctx->GetOption(RSK_SKIP_PLANTING_BEANS) && ctx->GetOption(RSK_STARTING_BEANS)) {
790+
return true;
789791
}
790792

791793
// swchFlag found using the Actor Viewer to get the Obj_Bean parameters & 0x3F

0 commit comments

Comments
 (0)