From 1f098d36ad7950f8c798ca5897c7ca5f3576b3be Mon Sep 17 00:00:00 2001 From: gymnast86 Date: Wed, 26 Aug 2026 22:44:12 -0700 Subject: [PATCH] refine barren region selection --- mods/randomizer/generator/logic/hints.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/randomizer/generator/logic/hints.cpp b/mods/randomizer/generator/logic/hints.cpp index 8b1cbd47f9..62e1c09f83 100644 --- a/mods/randomizer/generator/logic/hints.cpp +++ b/mods/randomizer/generator/logic/hints.cpp @@ -213,9 +213,9 @@ namespace randomizer::logic::hints { ); for (auto& location: world->GetAllLocations()) { - // If this location is progression, then add its hint regions to - // the set of potentially barren regions - if (location->IsProgression()) { + // If this location is progression and does not have an expected item, + // then add its hint regions to the set of potentially barren regions + if (location->IsProgression() && !location->HasExpectedItem()) { for (const auto& locAccess : location->GetAccessList()) { for (const auto& hintRegion : locAccess->GetArea()->GetHintRegions()) { world->GetBarrenRegions()[hintRegion] = {}; @@ -271,7 +271,7 @@ namespace randomizer::logic::hints { // required items (unless they can be in a barren region). Otherwise, add // the location to the list of locations in the barren region for (auto location : world->GetAllLocations()) { - if (!location->IsProgression()) { + if (!location->IsProgression() || location->HasExpectedItem()) { continue; }