remove special rules for pinball room

This commit is contained in:
Fabian Dill
2020-07-09 16:16:31 +02:00
parent baa1f1d2ba
commit 57fe16ab60
5 changed files with 6 additions and 25 deletions

View File

@@ -952,11 +952,11 @@ class Location(object):
self.item_rule = lambda item: True
self.player = player
def can_fill(self, state, item, check_access=True) -> bool:
def can_fill(self, state: CollectionState, item: Item, check_access=True) -> bool:
return self.always_allow(state, item) or (self.parent_region.can_fill(item) and self.item_rule(item) and (
not check_access or self.can_reach(state)))
def can_reach(self, state) -> bool:
def can_reach(self, state: CollectionState) -> bool:
if self.parent_region.can_reach(state) and self.access_rule(state):
return True
return False