The host's phrase button says it makes a transfer phrase, and its tooltip says who it is for and how the player uses it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0141G6xqLeNRYEtviLWSB5Up
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
4b7e05713d
commit
9a1c98ca55
@@ -32,7 +32,7 @@
|
||||
const hall = $derived(kin.hall);
|
||||
let joinCode = $state("");
|
||||
let claimPhrase = $state("");
|
||||
/** The host's seats panel: hand a seat to the clockwork, or make a phrase for it. */
|
||||
/** The host's seats panel: hand a seat to the clockwork, or make a transfer phrase for it. */
|
||||
let seatsOpen = $state(false);
|
||||
/** The seat the host asked to give the clockwork, waiting on a second click. */
|
||||
let standInAsked = $state<string | null>(null);
|
||||
@@ -2583,14 +2583,15 @@
|
||||
{@const standing = net.standIns.includes(p)}
|
||||
<div class="seats-row">
|
||||
<span class="seats-name">{p}{#if standing} <span class="seats-note">⚙ the clockwork plays for them</span>{/if}</span>
|
||||
<button class="stamp tiny" title="A phrase for {p} to claim. Their old link stops opening the seat."
|
||||
onclick={() => net.makeSeatPhrase(p)}>{standing ? "phrase to take it back" : "make a phrase"}</button>
|
||||
<button class="stamp tiny"
|
||||
title={`${standing ? `Brings ${p} back from the clockwork.` : `For when ${p}'s browser lost the seat, or they need to play from another device.`} You get four words to pass to them. Within ten minutes, they enter them on the front page, or in the claim box while watching this table, and sit back down as ${p}. The phrase works once, and the browser they used before stops opening the seat.`}
|
||||
onclick={() => net.makeSeatPhrase(p)}>{standing ? "transfer phrase to take it back" : "make a transfer phrase"}</button>
|
||||
{#if !standing && net.started && view?.phase === "playing" && view.players.find((w) => w.id === p)?.alive}
|
||||
{#if standInAsked === p}
|
||||
<button class="stamp tiny primary" onclick={() => { net.standIn(p); standInAsked = null; }}>yes, the clockwork plays for {p}</button>
|
||||
<button class="hint-cancel" onclick={() => (standInAsked = null)}>no</button>
|
||||
{:else}
|
||||
<button class="stamp tiny" title="{p} keeps their hand, treasures and place, and an automaton takes their turns until you make them a phrase to take it back."
|
||||
<button class="stamp tiny" title="{p} keeps their hand, treasures and place, and an automaton takes their turns until you make them a transfer phrase to take it back."
|
||||
onclick={() => (standInAsked = p)}>give to the clockwork</button>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user