LttP: move _hint_text to SubClasses (#2532)
This commit is contained in:
parent
49ecd4b9c1
commit
602c2966fc
|
@ -1056,9 +1056,6 @@ class Location:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def hint_text(self) -> str:
|
def hint_text(self) -> str:
|
||||||
hint_text = getattr(self, "_hint_text", None)
|
|
||||||
if hint_text:
|
|
||||||
return hint_text
|
|
||||||
return "at " + self.name.replace("_", " ").replace("-", " ")
|
return "at " + self.name.replace("_", " ").replace("-", " ")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,13 @@ class ALttPLocation(Location):
|
||||||
self.player_address = player_address
|
self.player_address = player_address
|
||||||
self._hint_text = hint_text
|
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):
|
class ALttPItem(Item):
|
||||||
game: str = "A Link to the Past"
|
game: str = "A Link to the Past"
|
||||||
|
|
Loading…
Reference in New Issue