quick no logic implementation

This commit is contained in:
gymnast86
2026-05-29 11:31:13 -07:00
parent 39b079ddb9
commit 3b8ec9efa6
+2 -1
View File
@@ -123,8 +123,9 @@ namespace randomizer::logic::fill
// If a world is only checking for beatable logic, then we can ignore
// any access checks and just choose a random location if the world is already beatable
auto beatableOnlyLogic = itemToPlace->GetWorld()->Setting("Logic Rules") == "Beatable Only";
auto noLogic = itemToPlace->GetWorld()->Setting("Logic Rules") == "No Logic";
bool canChooseAnyLocation =
search._ownedItems.contains(itemToPlace->GetWorld()->GetGameWinningItem()) && beatableOnlyLogic;
noLogic || (search._ownedItems.contains(itemToPlace->GetWorld()->GetGameWinningItem()) && beatableOnlyLogic);
for (const auto& location : allowedLocations)
{