LttP: Format non-native Location hints better
This commit is contained in:
parent
60840da740
commit
a975c8fd00
|
@ -966,7 +966,10 @@ class Location():
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def hint_text(self):
|
def hint_text(self):
|
||||||
return getattr(self, "_hint_text", self.name.replace("_", " ").replace("-", " "))
|
hint_text = getattr(self, "_hint_text", None)
|
||||||
|
if hint_text:
|
||||||
|
return hint_text
|
||||||
|
return "at " + self.name.replace("_", " ").replace("-", " ")
|
||||||
|
|
||||||
|
|
||||||
class Item():
|
class Item():
|
||||||
|
|
|
@ -2087,9 +2087,9 @@ def write_strings(rom, world, player):
|
||||||
if not dest:
|
if not dest:
|
||||||
return "nothing"
|
return "nothing"
|
||||||
if ped_hint:
|
if ped_hint:
|
||||||
hint = dest.pedestal_hint_text if dest.pedestal_hint_text else "unknown item"
|
hint = dest.pedestal_hint_text
|
||||||
else:
|
else:
|
||||||
hint = dest.hint_text if dest.hint_text else "something"
|
hint = dest.hint_text
|
||||||
if dest.player != player:
|
if dest.player != player:
|
||||||
if ped_hint:
|
if ped_hint:
|
||||||
hint += f" for {world.player_name[dest.player]}!"
|
hint += f" for {world.player_name[dest.player]}!"
|
||||||
|
|
Loading…
Reference in New Issue