base animation

This commit is contained in:
Maier
2020-01-03 16:32:03 -05:00
parent 0e6b669ba0
commit 5159f62693
4 changed files with 128 additions and 2 deletions

View File

@@ -169,7 +169,8 @@ io.on('connection', function(socket) {
if (game) {
let player = game.players.find((player) => player.id === id);
game.players.find((player) => player.id === id).dead = true;
game.message = player.name + ", a " + player.card.role + ", has been killed!";
game.killedPlayer = player;
game.killedRole = player.card.role;
const winCheck = teamWon(game);
if (winCheck === "wolf") {
game.winningTeam = "wolf";