Credibility pass: one teleport step, one bell, one step type, and the comments that argued are gone

Since 6e49fc9. Engine: the teleport BFS in the view and the engine's
wallIgnoringDistance share teleportStep; the counter trail is weighed
between steps instead of on six arms; the bush attack takes its
adjacency from SIDES like the wall does; a dead redirected clause, a
one-member set, an identity ternary, and a stray try/catch are gone;
two tests now assert what their names promise. Server: KEEPER and
MAX_SEATS live in rooms.ts, the three Sentry bells ring through one
helper, the unread reply field is dropped, actingSeat comes from the
engine, and the protocol header names every message. Web: ReplayStep
is one type, cardName one helper, the say box and the reference section
one snippet each, the keeper's name arrives from the server rather than
the source, and the lifesaver ruling that ruled nothing is out.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jm2auWk6RP71CjaAb4FMoG
This commit is contained in:
Eric WagonerandClaude Fable 5.1 committed 2026-09-22 09:56:49 -04:00
1 parent c4a555f8df
commit 66b5c06f17
21 files changed
+245 -239

No files matched your search

+14 -16
View File
@@ -10,7 +10,7 @@
import { RULEBOOK_COPYRIGHT } from "./rulebook";
import { helpState, type HelpTab } from "./help-state";
import {
REFERENCE, SOURCE_LABELS, searchReference, renderInline,
REFERENCE, SOURCE_LABELS, searchReference, renderInline, type RefSection,
CARD_POOL, searchCards, mentionedCards, sightOf, typeLabel, setLabel,
HOUSE_RULINGS, rulingsFor, searchRulings,
type RefSource,
@@ -129,6 +129,16 @@
});
</script>
{#snippet section(s: RefSection, withSource: boolean)}
<h3 id={s.id} class="linked">
{s.title}
{#if withSource}<span class="source">{SOURCE_LABELS[s.source]}</span>{/if}
<button class="link-btn" onclick={() => copyLink("rules", s.id, null)} title="copy a link to this section">
{copied === `rules/${s.id}` ? "copied" : "🔗"}</button>
</h3>
{#each s.paragraphs as p, i (i)}<p>{@html renderInline(p)}</p>{/each}
{/snippet}
<svelte:window {onkeydown} />
{#if entryDef}
@@ -277,7 +287,7 @@
<a class="tile" href="/?fpv">
<img src="/hero.jpg" alt="" />
<span class="tile-name">The first-person workshop</span>
<span class="tile-note">the maze through a wizard's own eyes — or <span class="tile-link">watch the demo reel</span></span>
<span class="tile-note">the maze through a wizard's own eyes</span>
</a>
</div>
<p class="colophon"><a href="/?fpv&demo=1">Watch the demo</a>: two clockwork wizards play a stretch, then the reel replays it.</p>
@@ -358,13 +368,7 @@
{#if rulesSearch.trim()}
<p class="count">{refResults.length === 0 ? `Nothing in the rules mentions "${rulesSearch.trim()}".` : `${refResults.length} of ${REFERENCE.length} sections`}</p>
{#each refResults as s (s.id)}
<h3 id={s.id} class="linked">
{s.title}
<span class="source">{SOURCE_LABELS[s.source]}</span>
<button class="link-btn" onclick={() => copyLink("rules", s.id, null)} title="copy a link to this section">
{copied === `rules/${s.id}` ? "copied" : "🔗"}</button>
</h3>
{#each s.paragraphs as p, i (i)}<p>{@html renderInline(p)}</p>{/each}
{@render section(s, true)}
{/each}
{:else}
<nav class="contents" aria-label="contents">
@@ -387,12 +391,7 @@
<p class="colophon">Tom Jolly's own answers (wizwar.com, September 2002), verbatim. Rulings occasionally reference other editions. Card-specific rulings are on the cards themselves, in the library.</p>
{/if}
{#each group.sections as s (s.id)}
<h3 id={s.id} class="linked">
{s.title}
<button class="link-btn" onclick={() => copyLink("rules", s.id, null)} title="copy a link to this section">
{copied === `rules/${s.id}` ? "copied" : "🔗"}</button>
</h3>
{#each s.paragraphs as p, i (i)}<p>{@html renderInline(p)}</p>{/each}
{@render section(s, false)}
{/each}
{/each}
{/if}
@@ -622,7 +621,6 @@
.tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; border: 1px solid #b3a687; background: #2a2622; }
.tile-name { font-family: "Oswald", sans-serif; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tile-note { font-size: 0.85rem; color: #6b5a41; }
.tile-link { text-decoration: underline; text-decoration-style: dotted; }
.search-row { margin-bottom: 0.8rem; }
.search-row input {