LttP: fix dungeon local items to be local to their own dungeon

This commit is contained in:
Fabian Dill 2021-08-28 22:58:23 +02:00
parent de567cc701
commit 60840da740
1 changed files with 3 additions and 0 deletions

View File

@ -807,7 +807,10 @@ class Region(object):
return True return True
return False return False
# look into moving this to ALttPLocation?
def can_fill(self, item: Item): def can_fill(self, item: Item):
if getattr(item, "locked_dungeon_item", False):
return item.player == self.player and self.dungeon.is_dungeon_item(item)
return True return True
def __repr__(self): def __repr__(self):