Skip to content

Commit

Permalink
Fix issue with ampersand
Browse files Browse the repository at this point in the history
  • Loading branch information
hesto2 committed Oct 11, 2024
1 parent c4453d5 commit d573f9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion data/RoomData.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
def get_config_item_text(world: 'MetroidPrimeWorld', location) -> str:
loc = world.multiworld.get_location(location, world.player)
player_name = f"{world.multiworld.player_name[loc.item.player]}'s " if loc.item.player != world.player else ""
return f"{player_name}{loc.item.name}"
player_name = player_name.replace("&", "[and]")
item_name = loc.item.name.replace("&", "[and]")
return f"{player_name}{item_name}"


def get_config_item_model(world: 'MetroidPrimeWorld', location) -> str:
Expand Down

0 comments on commit d573f9c

Please sign in to comment.