From 81051aebbaad07551cac486fdeb776d26608d9aa Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Tue, 11 Feb 2020 03:53:23 +0100 Subject: [PATCH] mind your brackets --- MultiServer.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/MultiServer.py b/MultiServer.py index a8f6709d..5192d042 100644 --- a/MultiServer.py +++ b/MultiServer.py @@ -231,11 +231,9 @@ def collect_hints(ctx:Context, team, slot, item:str) -> list: if receiving_player == slot and item_id == seeked_item_id: location_id, finding_player = check found = location_id in ctx.location_checks[team, finding_player] - hints.append(( - found, - f"[Hint]: {ctx.player_names[(team, slot)]}'s {item} can be found at " \ - f"{get_location_name_from_address(location_id)} in {ctx.player_names[team, finding_player]}'s World." + - " (found)" if found else "")) + hinttext = f"[Hint]: {ctx.player_names[(team, slot)]}'s {item} can be found at " \ + f"{get_location_name_from_address(location_id)} in {ctx.player_names[team, finding_player]}'s World." + hints.append((found, hinttext + (" (found)" if found else ""))) return hints