The ledger's money bag becomes the owner's chest too

The scoresheet's carrier mark now shows whose gold is being hauled —
the same colored SVG chest as the board badge, inline at text height.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0138A8CjeQRpvzKxuMfz1Bqc
This commit is contained in:
Eric Wagoner
2026-08-17 23:26:10 -04:00
co-authored by Claude Fable 5
parent 4a5baed853
commit 1069730880
+9 -2
View File
@@ -1,7 +1,7 @@
<script lang="ts">
import { attentionLabel, net, spellName } from "./net.svelte";
import Board from "./Board.svelte";
import { PLAYER_COLORS, wizardColor } from "./colors";
import { colorIndexOf, PLAYER_COLORS, wizardColor } from "./colors";
import Faq from "./Faq.svelte";
import Card from "./Card.svelte";
import Help from "./Help.svelte";
@@ -1606,7 +1606,9 @@
</span>
<span class="score-life">{p.life}</span>
<span class="score-marks">
{p.handCount} cards{#if p.lostTurns > 0}&nbsp;· dazed {p.lostTurns}{/if}{#if p.carriedTreasureId}&nbsp;· 💰{/if}
{p.handCount} cards{#if p.lostTurns > 0}&nbsp;· dazed {p.lostTurns}{/if}{#if p.carriedTreasureId}{@const ct = view.treasures.find((t) => t.id === p.carriedTreasureId)}&nbsp;·
<img class="score-chest" alt="carrying {ct?.owner ?? "a"} treasure"
src={`/tokens-svg/treasure-${colorIndexOf(view, ct?.owner ?? p.id) % 6}.svg`} />{/if}
</span>
</div>
{@const spellsOn = view.sustained.filter((e) => e.targetId === p.id)}
@@ -2382,6 +2384,11 @@
.score-name { font-family: "Caveat", cursive; font-size: 1.25rem; line-height: 1; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-life { font-family: "Caveat", cursive; font-size: 1.4rem; font-weight: 700; min-width: 1.6rem; text-align: right; }
.score-marks { font-size: 0.75rem; color: #6b5a41; }
.score-chest {
height: 1.05em;
vertical-align: -0.18em;
filter: drop-shadow(0.5px 0.5px 0.5px rgba(0, 0, 0, 0.35));
}
.deck-line {
font-family: "Courier Prime", monospace;
font-size: 0.72rem;