added art for Mason, display all evil roles at end screen

This commit is contained in:
Alec Maier
2019-09-12 20:28:26 -04:00
parent d7872e3d4b
commit d4df391d28
3 changed files with 3 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@@ -2,7 +2,7 @@ import {utility} from './util.js'
const socket = io();
const finishedArtArray = ["Villager", "Werewolf", "Seer", "Shadow", "Hunter"];
const finishedArtArray = ["Villager", "Werewolf", "Seer", "Shadow", "Hunter", "Mason"];
let clock;
let currentGame = null;
let cardFlippedOver = false;
@@ -68,7 +68,7 @@ function renderEndSplash() {
wolfContainer.setAttribute("id", "wolves");
let wolfContent = "<div class='evil-header'><span>The</span><p class='evil-subheader'>evil</p> <span>players were:</span></div>";
for (const player of currentGame.players) {
if (player.card.role === "Werewolf" || player.card.role === "Minion") {
if (player.card.team === "evil") {
wolfContent += "<div class='evil-list-item'>" + player.name + ": " + player.card.role + "</div>"
}
}
@@ -133,7 +133,7 @@ function renderPlayerCard(player) {
const card = player.card;
const cardArt = finishedArtArray.includes(card.role) ?
"<img alt='" + card.role + "' src='../assets/images/roles/" + card.role + ".png' />"
: "<div class='placeholder'></div>";
: "<div class='placeholder'>Art coming soon.</div>";
const cardClass = player.card.team === "good" ? "game-card-inner village" : "game-card-inner wolf";
const playerCard = document.createElement("div");
playerCard.setAttribute("id", "game-card");