The game's own vocabulary: 'points' for segments, 'life-points' for the living
Wiz-War never says hitpoints. Walls and doors quote the rulebook's own
phrasing ('20 points to destroy', '13 of 20 points left'), and the
Mega-Monster boost button says life-points, as its card does.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0138A8CjeQRpvzKxuMfz1Bqc
This commit is contained in:
co-authored by
Claude Fable 5
parent
0f91d30a3e
commit
1e5b7ee985
@@ -1844,7 +1844,7 @@
|
|||||||
{#if selectedCard?.cardId === "mega-monster"}
|
{#if selectedCard?.cardId === "mega-monster"}
|
||||||
<span>— double its</span>
|
<span>— double its</span>
|
||||||
<button class="stamp tiny" class:lit={megaBoost === "life"}
|
<button class="stamp tiny" class:lit={megaBoost === "life"}
|
||||||
onclick={() => (megaBoost = "life")}>hit points</button>
|
onclick={() => (megaBoost = "life")}>life-points</button>
|
||||||
<button class="stamp tiny" class:lit={megaBoost === "movement"}
|
<button class="stamp tiny" class:lit={megaBoost === "movement"}
|
||||||
onclick={() => (megaBoost = "movement")}>movement</button>
|
onclick={() => (megaBoost = "movement")}>movement</button>
|
||||||
<span>— then tap the monster</span>
|
<span>— then tap the monster</span>
|
||||||
|
|||||||
@@ -15,11 +15,12 @@
|
|||||||
const CELL = 48;
|
const CELL = 48;
|
||||||
const WALL = 7;
|
const WALL = 7;
|
||||||
const cls = $derived(state === "door" ? `door${lock ? ` ${lock}` : ""}` : "wall");
|
const cls = $derived(state === "door" ? `door${lock ? ` ${lock}` : ""}` : "wall");
|
||||||
// Every segment tells its hitpoints: what still stands of its 20 (or 15).
|
// Every segment tells its points — the game's own word: "A wall takes 20
|
||||||
|
// points of damage to destroy; a door takes 15."
|
||||||
const needed = $derived(state === "door" ? 15 : 20);
|
const needed = $derived(state === "door" ? 15 : 20);
|
||||||
const hp = $derived(damage > 0
|
const hp = $derived(damage > 0
|
||||||
? `${Math.max(0, needed - damage)} of ${needed} hitpoints left`
|
? `${Math.max(0, needed - damage)} of ${needed} points left`
|
||||||
: `${needed} hitpoints`);
|
: `${needed} points to destroy`);
|
||||||
const tip = $derived(`${title ?? (state === "door" ? "a locked door" : "a wall")} — ${hp}`);
|
const tip = $derived(`${title ?? (state === "door" ? "a locked door" : "a wall")} — ${hp}`);
|
||||||
|
|
||||||
// Press-and-hold peeks the segment, mirroring the board's cell gesture.
|
// Press-and-hold peeks the segment, mirroring the board's cell gesture.
|
||||||
|
|||||||
Reference in New Issue
Block a user