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",
|
"name": "townsquare",
|
||||||
"version": "1.4.2",
|
"version": "1.5.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "townsquare",
|
"name": "townsquare",
|
||||||
"version": "1.4.2",
|
"version": "1.5.0",
|
||||||
"description": "Blood on the Clocktower Town Square",
|
"description": "Blood on the Clocktower Town Square",
|
||||||
"author": "Steffen Baumgart",
|
"author": "Steffen Baumgart",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -806,7 +806,8 @@ li.move:not(.from) .player .overlay svg.move {
|
||||||
}
|
}
|
||||||
|
|
||||||
.player.dead .night em {
|
.player.dead .night em {
|
||||||
opacity: 0;
|
color: #ddd;
|
||||||
|
background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, gray 100%) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Reminder token *****/
|
/***** Reminder token *****/
|
||||||
|
|
|
@ -25,8 +25,8 @@ const getters = {
|
||||||
nightOrder({ players }) {
|
nightOrder({ players }) {
|
||||||
const firstNight = [0];
|
const firstNight = [0];
|
||||||
const otherNight = [0];
|
const otherNight = [0];
|
||||||
players.forEach(({ role, isDead }) => {
|
players.forEach(({ role }) => {
|
||||||
if (isDead) return;
|
// if (isDead) return;
|
||||||
if (role.firstNight && !firstNight.includes(role.firstNight)) {
|
if (role.firstNight && !firstNight.includes(role.firstNight)) {
|
||||||
firstNight.push(role.firstNight);
|
firstNight.push(role.firstNight);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue