From 42eb9ef5187f8c5e98635713fbcf27597f51874f Mon Sep 17 00:00:00 2001 From: gymnast86 Date: Thu, 21 May 2026 10:04:38 -0700 Subject: [PATCH] use region for areas instead of area name --- src/dusk/imgui/ImGuiMenuRandomizer.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/dusk/imgui/ImGuiMenuRandomizer.cpp b/src/dusk/imgui/ImGuiMenuRandomizer.cpp index ba6852fae8..9af57138bb 100644 --- a/src/dusk/imgui/ImGuiMenuRandomizer.cpp +++ b/src/dusk/imgui/ImGuiMenuRandomizer.cpp @@ -357,9 +357,16 @@ namespace dusk { info.collected = false; } + // Gather the hint regions this location is in (set avoids duplicates) + std::unordered_set regions{}; for (auto access : location->GetAccessList()) { - auto areaName = access->GetArea()->GetName(); - auto& infoGroup = m_LocationInfo[areaName]; + for (const auto& region : access->GetArea()->GetHintRegions()) { + regions.insert(region); + } + } + + for (const auto& region : regions) { + auto& infoGroup = m_LocationInfo[region]; if (!infoGroup.anyAccessible && info.accessible) { infoGroup.anyAccessible = true; }