Skip to content

Commit

Permalink
LttP: move _hint_text to SubClasses (ArchipelagoMW#2532)
Browse files Browse the repository at this point in the history
  • Loading branch information
Berserker66 authored Jan 16, 2024
1 parent 49ecd4b commit 602c296
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 0 additions & 3 deletions BaseClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,9 +1056,6 @@ def native_item(self) -> bool:

@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("-", " ")


Expand Down
7 changes: 7 additions & 0 deletions worlds/alttp/SubClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ def __init__(self, player: int, name: str, address: Optional[int] = None, crysta
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"
Expand Down

0 comments on commit 602c296

Please sign in to comment.