diff --git a/packages/engine/package.json b/packages/engine/package.json index 08d96b6..1a6f590 100644 --- a/packages/engine/package.json +++ b/packages/engine/package.json @@ -1,6 +1,6 @@ { "name": "fuji-engine", - "version": "0.1.7", + "version": "0.1.8", "private": true, "license": "AGPL-3.0-only", "files": [ diff --git a/packages/engine/src/data.ts b/packages/engine/src/data.ts index 39b4f24..9b53210 100644 --- a/packages/engine/src/data.ts +++ b/packages/engine/src/data.ts @@ -87,7 +87,7 @@ export const SKILLS = { draw: 1, keep: 1, page: 2, - description: "One additional reroll during the reroll phase.", + description: "Start with five dice. One additional reroll during the reroll phase.", }, gatherer: { name: "Gatherer", @@ -111,7 +111,7 @@ export const SKILLS = { draw: 2, keep: 2, page: 5, - description: "Travel up to four spaces. A four-space journey allows no phase-three rerolls.", + description: "Start with five dice. Travel up to four spaces. A four-space journey allows no phase-three rerolls.", }, tinkerer: { name: "Tinkerer", diff --git a/packages/viewer/src/App.svelte b/packages/viewer/src/App.svelte index de4e2ce..0c835d7 100644 --- a/packages/viewer/src/App.svelte +++ b/packages/viewer/src/App.svelte @@ -3,6 +3,7 @@ import ChatPanel from "./lib/ChatPanel.svelte"; import { untrack } from "svelte"; import { + DICE, terrain, cell, paths, @@ -435,6 +436,7 @@ ? "Preparation" : s.phase} + Level {s.difficulty} {#if store.chat.enabled}{s.skillChoices?.includes(i) - ? "Choosing skill" - : SKILLS[p.skill].name}{#each p.injuries as injury}{/each}{#if p.skill === "gatherer"} + {s.skillChoices?.includes(i) ? "Choosing skill" : SKILLS[p.skill].name} +

+ {s.skillChoices?.includes(i) ? "This player is choosing their skill." : SKILLS[p.skill].description} +

+ {#if p.injuries.includes("amnesia")}

Currently unavailable due to amnesia.

{/if} +
{#each p.injuries as injury}{/each}{#if p.skill === "gatherer"}{/each} {#if !me.setupDone} - {#if SKILLS[me.skill].dice === 5}
- Choose the die to leave behind -
- {#each me.dice as d}{/each} + {#if SKILLS[me.skill].dice === 5}
+ Choose one die to leave behind +

+ You will keep five dice for the expedition. Each row shows all six faces of a die; the two dice of + each type are identical. +

+
+ {#each me.dice.filter((d, i, dice) => dice.findIndex((other) => other.type === d.type) === i) as d} + + {/each}
{/if}

{keep.length} / {SKILLS[me.skill].keep} cards selected

diff --git a/packages/viewer/src/lib/theme.css b/packages/viewer/src/lib/theme.css index 2a1e5ed..7da27c4 100644 --- a/packages/viewer/src/lib/theme.css +++ b/packages/viewer/src/lib/theme.css @@ -1746,3 +1746,67 @@ button.equipment-chip { padding: 8px; } } + +.role-details { + background: none; + border: 0; + padding: 0; + color: inherit; + font: inherit; + cursor: help; + text-align: left; +} +.role-details:hover, +.role-details:focus-visible { + color: #f1d584; + text-decoration: underline dotted; +} +.role-preview p { + margin: 8px 0 0; +} +.starting-dice p { + font-size: 14px; + line-height: 1.5; +} +.starting-dice-options { + display: grid; + gap: 8px; +} +.starting-dice-options button { + padding: 10px; + text-align: left; + width: 100%; +} +.starting-die-label { + display: flex; + justify-content: space-between; + font-size: 14px; + margin-bottom: 8px; +} +.starting-die-faces { + display: grid; + grid-template-columns: repeat(6, minmax(0, 1fr)); + gap: 5px; +} +.starting-die-face { + background: var(--face-color); + color: #152d27; + border-radius: 5px; + font-size: 20px; + font-weight: 700; + text-align: center; + padding: 5px 0; + box-shadow: inset 0 -3px #0002; +} +.starting-die-face small { + display: block; + font-size: 8px; + font-weight: 400; +} + +.difficulty-label { + color: #afbcad; + border-left: 1px solid #597367; + padding-left: 9px; + white-space: nowrap; +}