Core: don't sweep excluded locations for accessibility check, as they are forbidden from having progression anyway. (#357)
This commit is contained in:
parent
420be2c44f
commit
14956d27bd
|
@ -91,7 +91,6 @@ class MultiWorld():
|
||||||
lambda player: self.shuffle[player] not in ['vanilla', 'simple', 'restricted', 'dungeonssimple'])
|
lambda player: self.shuffle[player] not in ['vanilla', 'simple', 'restricted', 'dungeonssimple'])
|
||||||
self.fix_trock_exit = self.AttributeProxy(
|
self.fix_trock_exit = self.AttributeProxy(
|
||||||
lambda player: self.shuffle[player] not in ['vanilla', 'simple', 'restricted', 'dungeonssimple'])
|
lambda player: self.shuffle[player] not in ['vanilla', 'simple', 'restricted', 'dungeonssimple'])
|
||||||
self.NOTCURSED = self.AttributeProxy(lambda player: not self.CURSED[player])
|
|
||||||
|
|
||||||
for player in range(1, players + 1):
|
for player in range(1, players + 1):
|
||||||
def set_player_attr(attr, val):
|
def set_player_attr(attr, val):
|
||||||
|
@ -518,8 +517,9 @@ class MultiWorld():
|
||||||
|
|
||||||
def location_relevant(location: Location):
|
def location_relevant(location: Location):
|
||||||
"""Determine if this location is relevant to sweep."""
|
"""Determine if this location is relevant to sweep."""
|
||||||
if location.player in players["locations"] or location.event or \
|
if location.progress_type != LocationProgressType.EXCLUDED \
|
||||||
(location.item and location.item.advancement):
|
and (location.player in players["locations"] or location.event
|
||||||
|
or (location.item and location.item.advancement)):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue