mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
LttP: move _hint_text to SubClasses (#2532)
This commit is contained in:
@@ -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"
|
||||||
|
Reference in New Issue
Block a user