Skip to content

Commit

Permalink
Core: Minimal-Items Accessibility Fix (#1888)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alchav authored Feb 13, 2024
1 parent 151e2c3 commit 6f3bc3a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions BaseClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,10 @@ def fulfills_accessibility(self, state: Optional[CollectionState] = None):

def location_condition(location: Location):
"""Determine if this location has to be accessible, location is already filtered by location_relevant"""
if location.player in players["minimal"]:
return False
return True
if location.player in players["locations"] or (location.item and location.item.player not in
players["minimal"]):
return True
return False

def location_relevant(location: Location):
"""Determine if this location is relevant to sweep."""
Expand Down

0 comments on commit 6f3bc3a

Please sign in to comment.