Reel captions keep the count, not the cards
"You draw Waterbolt" belongs in the chronicle, not on a replay whose canvas gets recorded and passed around — the reel's captions now skip the private-draw events (drawn, dealt, stolen) and say only how many. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
15f38ce5e5
commit
765828700d
@@ -71,8 +71,14 @@
|
|||||||
return pov ?? steps[0]!.view.you;
|
return pov ?? steps[0]!.view.you;
|
||||||
});
|
});
|
||||||
const step = $derived(steps[Math.min(idx, steps.length - 1)]!);
|
const step = $derived(steps[Math.min(idx, steps.length - 1)]!);
|
||||||
|
/** What you drew belongs in the chronicle, not on a reel that may be
|
||||||
|
* recorded and passed around — captions keep the count, not the cards. */
|
||||||
|
const CAPTION_SILENT = new Set(["cardsDrawnPrivate", "cardsDealtPrivate", "cardsStolenPrivate"]);
|
||||||
const lines = $derived(
|
const lines = $derived(
|
||||||
step.events.map(humanize).filter((l): l is string => l !== null),
|
step.events
|
||||||
|
.filter((e) => !CAPTION_SILENT.has(e.type))
|
||||||
|
.map(humanize)
|
||||||
|
.filter((l): l is string => l !== null),
|
||||||
);
|
);
|
||||||
const atEnd = $derived(idx >= steps.length - 1);
|
const atEnd = $derived(idx >= steps.length - 1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user