mirror of
https://github.com/bra1n/townsquare.git
synced 2025-04-04 22:24:36 +00:00
Adding a forgotten change for the new version
This commit is contained in:
parent
c42a3c5a13
commit
cd32442088
1 changed files with 4 additions and 4 deletions
|
@ -29,18 +29,18 @@ const getters = {
|
||||||
const firstNight = [0];
|
const firstNight = [0];
|
||||||
const otherNight = [0];
|
const otherNight = [0];
|
||||||
fabled.forEach(role => {
|
fabled.forEach(role => {
|
||||||
if (role.firstNight && !firstNight.includes(role.firstNight)) {
|
if (role.firstNight && !firstNight.includes(role)) {
|
||||||
firstNight.push(role);
|
firstNight.push(role);
|
||||||
}
|
}
|
||||||
if (role.otherNight && !otherNight.includes(role.otherNight)) {
|
if (role.otherNight && !otherNight.includes(role)) {
|
||||||
otherNight.push(role);
|
otherNight.push(role);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
players.forEach(({ role }) => {
|
players.forEach(({ role }) => {
|
||||||
if (role.firstNight && !firstNight.includes(role.firstNight)) {
|
if (role.firstNight && !firstNight.includes(role)) {
|
||||||
firstNight.push(role);
|
firstNight.push(role);
|
||||||
}
|
}
|
||||||
if (role.otherNight && !otherNight.includes(role.otherNight)) {
|
if (role.otherNight && !otherNight.includes(role)) {
|
||||||
otherNight.push(role);
|
otherNight.push(role);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue