From 81f618cabc591e3b59bc92bbd1413808441972b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Tue, 7 May 2019 11:48:50 +0300 Subject: [PATCH] More info when restarting round due to losing cards --- gameloop.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gameloop.py b/gameloop.py index 5116ca5..25583bf 100644 --- a/gameloop.py +++ b/gameloop.py @@ -658,12 +658,14 @@ def game(send, notice, voice, devoice, get_event): # Did we lose our call card? if round_call_card is None: # Yes, restart round + send('Lost the black card, restarting round') return setup_round # Did it remove a card from someone voting this round? for player in choosers: if None in player.hand: # Yes, restart round + send('Lost a card from player\'s hand, restarting round') return setup_round for player in card_choices: @@ -673,6 +675,7 @@ def game(send, notice, voice, devoice, get_event): # in which case we might hit a None if None in player.hand: # Yes, restart round + send('Lost a card from player\'s hand, restarting round') return setup_round else: @@ -774,6 +777,7 @@ def game(send, notice, voice, devoice, get_event): # Did we lose our call card? if round_call_card is None: # Yes, restart round + send('Lost the black card, restarting round') return setup_round # Did it affect any response cards on this round? @@ -781,6 +785,7 @@ def game(send, notice, voice, devoice, get_event): for index in card_choices[player]: if player.hand[index] is None: # Yes, restart round + send('Lost a card played this round, restarting round') return setup_round else: