Notify players in deadchat when the game ends

This commit is contained in:
Bryce Roesner 2016-04-07 13:16:46 -05:00 committed by nyuszika7h
parent 4d480e32c6
commit 71ff8c34e8
2 changed files with 4 additions and 0 deletions

View File

@ -178,6 +178,7 @@
"traitor_turn_channel": "\u0002The villagers, during their celebrations, are frightened as they hear a loud howl. The wolves are not gone!\u0002", "traitor_turn_channel": "\u0002The villagers, during their celebrations, are frightened as they hear a loud howl. The wolves are not gone!\u0002",
"role_attribution_failed": "The role attribution failed 3 times. Game was canceled.", "role_attribution_failed": "The role attribution failed 3 times. Game was canceled.",
"endgame_stats": "Game lasted \u0002{0:0>2}:{1:0>2}\u0002. \u0002{2:0>2}:{3:0>2}\u0002 was day. \u0002{4:0>2}:{5:0>2}\u0002 was night. ", "endgame_stats": "Game lasted \u0002{0:0>2}:{1:0>2}\u0002. \u0002{2:0>2}:{3:0>2}\u0002 was day. \u0002{4:0>2}:{5:0>2}\u0002 was night. ",
"endgame_deadchat": "The game has ended, check {0} for the results.",
"single_winner": "The winner is \u0002{0}\u0002.", "single_winner": "The winner is \u0002{0}\u0002.",
"two_winners": "The winners are \u0002{0}\u0002 and \u0002{1}\u0002.", "two_winners": "The winners are \u0002{0}\u0002 and \u0002{1}\u0002.",
"many_winners": "The winners are {0}, and \u0002{1}\u0002.", "many_winners": "The winners are {0}, and \u0002{1}\u0002.",

View File

@ -2664,6 +2664,9 @@ def stop_game(cli, winner = "", abort = False, additional_winners = None):
nicklist = ("\u0002" + x + "\u0002" for x in winners[0:-1]) nicklist = ("\u0002" + x + "\u0002" for x in winners[0:-1])
cli.msg(chan, messages["many_winners"].format(", ".join(nicklist), winners[-1])) cli.msg(chan, messages["many_winners"].format(", ".join(nicklist), winners[-1]))
# Message players in deadchat letting them know that the game has ended
mass_privmsg(cli, var.DEADCHAT_PLAYERS, messages["endgame_deadchat"].format(chan))
reset_modes_timers(cli) reset_modes_timers(cli)
reset() reset()