{#if error}
{error}
{/if} {#each proposals as proposal (proposal.id)}

Objective Vote: {state.players.find(p => p.id === proposal.target_id)?.name} — {labels[proposal.type]}

Majority decides. The Captain breaks ties; a tie without a Captain does not award the objective. Votes close when decided or the scene ends.

{Object.values(proposal.ballots).filter(Boolean).length} Yes · {Object.values(proposal.ballots).filter(v => !v).length} No · {state.players.filter(p => !p.needs_reroll && !(p.id in proposal.ballots)).length} waiting

{#if !state.player.needs_reroll}
{/if}
{/each}