Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4354a1860f | ||
|
|
4e93a77e8d | ||
|
|
bdfe357429 | ||
|
|
e4a93ec3aa |
@@ -955,8 +955,10 @@
|
||||
if (view && me) {
|
||||
const left = view.turn.movementAllowance - view.turn.movementUsed;
|
||||
// Unspent legs are no regret when the walk ended ON someone's gold —
|
||||
// stopping there was the point.
|
||||
if (left > 0 && !treasuresHere.some((t) => t.owner !== view.you)) {
|
||||
// stopping there was the point — nor when a pickup or drop already
|
||||
// forfeited them: those points cannot be spent, only mourned.
|
||||
if (left > 0 && !view.turn.actionsEnded &&
|
||||
!treasuresHere.some((t) => t.owner !== view.you)) {
|
||||
reasons.push(`${left} movement point${left === 1 ? "" : "s"} unspent`);
|
||||
}
|
||||
const limit = me.displayed.some((c) => c.cardId === "brainstone") ? 9 : 7;
|
||||
@@ -1381,24 +1383,24 @@
|
||||
<button class="stamp tiny" class:lit={prefs.art === "photo"}
|
||||
onclick={() => setPref("art", "photo")}>cardboard</button>
|
||||
<button class="stamp tiny" class:lit={prefs.art === "drawn"}
|
||||
onclick={() => setPref("art", "drawn")}>hand-drawn</button>
|
||||
onclick={() => setPref("art", "drawn")}>alternate</button>
|
||||
</div>
|
||||
<label class="pref-row">
|
||||
<label class="pref-row pref-check">
|
||||
<input type="checkbox" checked={prefs.autoGrab}
|
||||
onchange={(e) => setPref("autoGrab", e.currentTarget.checked)} />
|
||||
<span>Ending my turn on a lone treasure picks it up (never on my own home)</span>
|
||||
</label>
|
||||
<label class="pref-row">
|
||||
<label class="pref-row pref-check">
|
||||
<input type="checkbox" checked={prefs.flourishes}
|
||||
onchange={(e) => setPref("flourishes", e.currentTarget.checked)} />
|
||||
<span>Spell flourishes (the animated effects)</span>
|
||||
</label>
|
||||
<label class="pref-row">
|
||||
<label class="pref-row pref-check">
|
||||
<input type="checkbox" checked={prefs.instantReplay}
|
||||
onchange={(e) => setPref("instantReplay", e.currentTarget.checked)} />
|
||||
<span>Instant replay: notable chronicle lines offer a 👁 that relives the turn</span>
|
||||
</label>
|
||||
<label class="pref-row">
|
||||
<label class="pref-row pref-check">
|
||||
<input type="checkbox" checked={prefs.cautions}
|
||||
onchange={(e) => setPref("cautions", e.currentTarget.checked)} />
|
||||
<span>Ask "are you sure?" before easy-to-regret plays (unspent movement, capped draws, undropped deliveries)</span>
|
||||
@@ -2793,11 +2795,52 @@
|
||||
.pref-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
margin: 0.55rem 0;
|
||||
gap: 0.6rem;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0.55rem 0.1rem;
|
||||
font-size: 0.85rem;
|
||||
color: #43331f;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
/* Rules divide the checkbox stanza only — never framing it, never
|
||||
around the control rows. */
|
||||
.pref-check + .pref-check { border-top: 1.5px solid #6b5a41; }
|
||||
/* Checkboxes wear the table's own ink: a stamp-bordered box, checked
|
||||
solid with a parchment tick — the native widget never matches the
|
||||
parchment. */
|
||||
.pref-row input[type="checkbox"] {
|
||||
appearance: none;
|
||||
flex: none;
|
||||
width: 1.05rem;
|
||||
height: 1.05rem;
|
||||
border: 1.5px solid #43331f;
|
||||
border-radius: 3px;
|
||||
background: #f6efdd;
|
||||
cursor: pointer;
|
||||
display: grid;
|
||||
place-content: center;
|
||||
margin: 0;
|
||||
}
|
||||
.pref-row input[type="checkbox"]:checked {
|
||||
background: #43331f;
|
||||
}
|
||||
.pref-row input[type="checkbox"]:checked::before {
|
||||
content: "✓";
|
||||
color: #f6efdd;
|
||||
font-size: 0.8rem;
|
||||
line-height: 1;
|
||||
font-weight: 700;
|
||||
}
|
||||
.pref-row span { flex: 1; }
|
||||
/* Control rows read as a two-column table: the label holds the left
|
||||
column, its controls right-align into the second. */
|
||||
.pref-row > span:first-child { flex: 0 1 auto; }
|
||||
.pref-row > span:first-child + .stamp,
|
||||
.pref-row > span:first-child + input,
|
||||
.pref-row > span:first-child + .pref-swatch { margin-left: auto; }
|
||||
.pref-note { font-size: 0.72rem; color: #8a7a5e; margin-top: 0.6rem; }
|
||||
.pref-name { max-width: 11rem; }
|
||||
.pref-swatch {
|
||||
|
||||
Reference in New Issue
Block a user