Skip to content

five-on-it / packages/missions/src/play / openSeats

Function: openSeats() ​

openSeats(play, seats, checkpoints): OpenTeam[]

Defined in: packages/missions/src/play.ts:193

The seats a live run may fill now, team by team (none of them: an empty list): under untilCheckpoint (but once a checkpoint was saved: checkpoints above 0) each team its seats of the roster it started with that nobody holds any more; under always each team up to its most players, the run up to the mission's; under never, none. Each team's count is what it may take on its own (the teams share the run's room: one filled, the others may have fewer); a team with no seat to fill is left out. A free-for-all's teams take one player each.

Parameters ​

play ​

ResolvedPlay

seats ​

readonly SeatHold[]

checkpoints ​

number

Returns ​

OpenTeam[]