LADX: Filter braces out of player names for hint text (#3831)

* Filter braces out of player names for hint text

* Filter out another spot
This commit is contained in:
Scipio Wright
2024-08-29 02:15:49 -04:00
committed by GitHub
parent ab5b986716
commit 0e55ddc7cf
2 changed files with 7 additions and 2 deletions

View File

@@ -18,7 +18,8 @@ class ShopItem(ItemInfo):
mw_text = ""
if multiworld:
mw_text = f" for player {rom.player_names[multiworld - 1].encode('ascii', 'replace').decode()}"
# filter out { and } since they cause issues with string.format later on
mw_text = mw_text.replace("{", "").replace("}", "")
if self.custom_item_name:
name = self.custom_item_name