Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def end_game_sound(self, winning_team):
#if self.game_mode == common.Games.JoustTeams:
if winning_team == Team.red.value:
team_win = Audio('audio/Commander/sounds/red winner.wav')
if winning_team == Team.blue.value:
team_win = Audio('audio/Commander/sounds/blue winner.wav')
team_win.start_effect()
def end_game_sound(self, winning_team):
#if self.game_mode == common.Games.JoustTeams:
if winning_team == Team.red.value:
team_win = Audio('audio/Commander/sounds/red winner.wav')
if winning_team == Team.blue.value:
team_win = Audio('audio/Commander/sounds/blue winner.wav')
team_win.start_effect()