diff options
| author | Philip Dubé <serprex@users.noreply.github.com> | 2026-01-05 15:58:51 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-05 15:58:51 +0000 |
| commit | 3f8aa32d12867fcc8caef2a7fb714f494292045d (patch) | |
| tree | 4079c098678488b88009210e0a07cd47bb423640 | |
| parent | 7c4a3359f005ab97483ed01fd83fe6a79a27d43a (diff) | |
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
| -rw-r--r-- | soh/soh/Enhancements/randomizer/location_access.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
