LttP: move _hint_text to SubClasses (#2532)

This commit is contained in:
Fabian Dill
2024-01-16 17:23:18 +01:00
committed by GitHub
parent 49ecd4b9c1
commit 602c2966fc
2 changed files with 7 additions and 3 deletions

View File

@@ -26,6 +26,13 @@ class ALttPLocation(Location):
self.player_address = player_address
self._hint_text = hint_text
@property
def hint_text(self) -> str:
hint_text = getattr(self, "_hint_text", None)
if hint_text:
return hint_text
return "at " + self.name.replace("_", " ").replace("-", " ")
class ALttPItem(Item):
game: str = "A Link to the Past"