LADX: tweak in-game hints (#3920)

* dont show local player name in hint

* add option to disable hints

---------

Co-authored-by: NewSoupVi <57900059+NewSoupVi@users.noreply.github.com>
This commit is contained in:
threeandthreee
2024-12-05 06:03:16 -05:00
committed by GitHub
parent 85a0d59f73
commit d80069385d
2 changed files with 12 additions and 1 deletions

View File

@@ -266,6 +266,8 @@ def generateRom(args, world: "LinksAwakeningWorld"):
our_useful_items = [item for item in our_items if ItemClassification.progression in item.classification]
def gen_hint():
if not world.options.in_game_hints:
return 'Hints are disabled!'
chance = world.random.uniform(0, 1)
if chance < JUNK_HINT:
return None
@@ -286,7 +288,7 @@ def generateRom(args, world: "LinksAwakeningWorld"):
else:
location_name = location.name
hint = f"{name} {location.item} is at {location_name}"
hint = f"{name} {location.item.name} is at {location_name}"
if location.player != world.player:
# filter out { and } since they cause issues with string.format later on
player_name = world.multiworld.player_name[location.player].replace("{", "").replace("}", "")