LttP: fix dungeon local items to be local to their own dungeon
This commit is contained in:
		
							parent
							
								
									de567cc701
								
							
						
					
					
						commit
						60840da740
					
				| 
						 | 
					@ -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):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue