AutoWorld: remove Games Enum (AutoWorldRegister.world_types replaces it)

This commit is contained in:
Fabian Dill
2021-07-12 14:10:49 +02:00
parent 31c550d410
commit b53d6c370b
4 changed files with 11 additions and 18 deletions

View File

@@ -1128,6 +1128,11 @@ class Location():
def __lt__(self, other):
return (self.player, self.name) < (other.player, other.name)
@property
def native_item(self) -> bool:
"""Returns True if the item in this location matches game."""
return self.item and self.item.game == self.game
@property
def hint_text(self):
return getattr(self, "_hint_text", self.name.replace("_", " ").replace("-", " "))