The Witness: Fix hints always displaying the Witness player (#3861)

* The Witness: Fix hints always displaying the Witness player

Got a bit too trigger happy with changing instances of `world.multiworld.player_name` to `world.player_name` - Some of these were actually *supposed* to be other players.

Alternate title: The Witness doesn't have a Silph Scope

* that one i guess
This commit is contained in:
NewSoupVi 2024-09-09 17:36:47 +02:00 committed by GitHub
parent 09c7f5f909
commit 170aedba8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ def try_getting_location_group_for_location(world: "WitnessWorld", hint_loc: Loc
def word_direct_hint(world: "WitnessWorld", hint: WitnessLocationHint) -> WitnessWordedHint: def word_direct_hint(world: "WitnessWorld", hint: WitnessLocationHint) -> WitnessWordedHint:
location_name = hint.location.name location_name = hint.location.name
if hint.location.player != world.player: if hint.location.player != world.player:
location_name += " (" + world.player_name + ")" location_name += " (" + world.multiworld.get_player_name(hint.location.player) + ")"
item = hint.location.item item = hint.location.item
@ -229,7 +229,7 @@ def word_direct_hint(world: "WitnessWorld", hint: WitnessLocationHint) -> Witnes
item_name = item.name item_name = item.name
if item.player != world.player: if item.player != world.player:
item_name += " (" + world.player_name + ")" item_name += " (" + world.multiworld.get_player_name(item.player) + ")"
hint_text = "" hint_text = ""
area: Optional[str] = None area: Optional[str] = None