mirror of
https://github.com/bra1n/townsquare.git
synced 2025-04-04 22:24:36 +00:00
fix lint
This commit is contained in:
parent
d8c3002ded
commit
13f0506fb5
1 changed files with 2 additions and 2 deletions
|
@ -47,12 +47,12 @@ const getters = {
|
||||||
firstNight.sort((a, b) => a.firstNight - b.firstNight);
|
firstNight.sort((a, b) => a.firstNight - b.firstNight);
|
||||||
otherNight.sort((a, b) => a.otherNight - b.otherNight);
|
otherNight.sort((a, b) => a.otherNight - b.otherNight);
|
||||||
const nightOrder = new Map();
|
const nightOrder = new Map();
|
||||||
players.forEach(player => {
|
players.forEach((player) => {
|
||||||
const first = Math.max(firstNight.indexOf(player.role), 0);
|
const first = Math.max(firstNight.indexOf(player.role), 0);
|
||||||
const other = Math.max(otherNight.indexOf(player.role), 0);
|
const other = Math.max(otherNight.indexOf(player.role), 0);
|
||||||
nightOrder.set(player, { first, other });
|
nightOrder.set(player, { first, other });
|
||||||
});
|
});
|
||||||
fabled.forEach(role => {
|
fabled.forEach((role) => {
|
||||||
const first = Math.max(firstNight.indexOf(role), 0);
|
const first = Math.max(firstNight.indexOf(role), 0);
|
||||||
const other = Math.max(otherNight.indexOf(role), 0);
|
const other = Math.max(otherNight.indexOf(role), 0);
|
||||||
nightOrder.set(role, { first, other });
|
nightOrder.set(role, { first, other });
|
||||||
|
|
Loading…
Add table
Reference in a new issue