Marks player names with a pair of asterisks if they have completed their goal.

This commit is contained in:
Sandra 2021-11-03 12:54:00 +11:00 committed by Fabian Dill
parent fdc96115e4
commit cb8da2e757
1 changed files with 8 additions and 2 deletions

View File

@ -420,7 +420,13 @@ class Context:
def get_aliased_name(self, team: int, slot: int):
if (team, slot) in self.name_aliases:
if self.client_game_state[team,slot] == ClientStatus.CLIENT_GOAL:
return f"*{self.name_aliases[team, slot]}* ({self.player_names[team, slot]})"
else:
return f"{self.name_aliases[team, slot]} ({self.player_names[team, slot]})"
else:
if self.client_game_state[team,slot] == ClientStatus.CLIENT_GOAL:
return f"*{self.player_names[team, slot]}*"
else:
return self.player_names[team,slot]