Implemented "Embarassing Defeat" when the game is over and you have 0 kills

main
unfa 2021-09-25 19:04:03 +02:00
parent dd47c8d965
commit 6c52aafff5
1 changed files with 2 additions and 0 deletions

View File

@ -181,6 +181,8 @@ func _input(_event) -> void:
if winner == local_player.get_multiplayer_authority():
$Announcer.speak($Announcer.victory)
elif player_list.get(local_player.get_multiplayer_authority()).score == 0:
$Announcer.speak($Announcer.defeat2) # embarrasing defeat
else:
$Announcer.speak($Announcer.defeat)