keep night order for dead players (closes #47)

This commit is contained in:
Steffen 2020-07-19 21:16:45 +02:00
parent e19aa7a6fe
commit 1ce9c08dc3
No known key found for this signature in database
GPG Key ID: 764D74E98267DFC6
4 changed files with 6 additions and 5 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "townsquare",
"version": "1.4.2",
"version": "1.5.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "townsquare",
"version": "1.4.2",
"version": "1.5.0",
"description": "Blood on the Clocktower Town Square",
"author": "Steffen Baumgart",
"scripts": {

View File

@ -806,7 +806,8 @@ li.move:not(.from) .player .overlay svg.move {
}
.player.dead .night em {
opacity: 0;
color: #ddd;
background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, gray 100%) ;
}
/***** Reminder token *****/

View File

@ -25,8 +25,8 @@ const getters = {
nightOrder({ players }) {
const firstNight = [0];
const otherNight = [0];
players.forEach(({ role, isDead }) => {
if (isDead) return;
players.forEach(({ role }) => {
// if (isDead) return;
if (role.firstNight && !firstNight.includes(role.firstNight)) {
firstNight.push(role.firstNight);
}