mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-04 10:26:16 -04:00
quick no logic implementation
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user