mirror of https://github.com/bra1n/townsquare.git
keep night order for dead players (closes #47)
This commit is contained in:
parent
e19aa7a6fe
commit
1ce9c08dc3
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "townsquare",
|
||||
"version": "1.4.2",
|
||||
"version": "1.5.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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 *****/
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue