Mood bar: faint track, soft edge

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-10-28 15:39:43 +00:00
parent faf186f102
commit af1ed5eacf
2 changed files with 7 additions and 4 deletions

View file

@ -2072,7 +2072,7 @@ function moodPanel() {
const effects = [`🌱 Growth ${pct(e.growth)}`, `🛡️ Guards ${pct(e.militia)}`, `🔨 Labour ${pct(e.work)}`, `${COIN} Taxes ${pct(e.work)}`,
...(e.leave ? [`<span class="bad">🚶 ${pct(e.leave)} leave a day</span>`] : [])];
return `<div class="panel mood"><h2>${h.icon} Townsfolk · ${h.name} · ${moodTrend(h)}</h2>
<div class="mood-bar" title="${esc(`Mood ${pct(h.score)}`)}"><span style="width:${100 - h.score * 100}%"></span></div>
<div class="mood-bar" title="${esc(`Mood ${pct(h.score)}`)}" style="--p:${h.score * 100}%"><span></span></div>
<div class="mood-effects small">${effects.join(" · ")}</div>
<div class="needs">${needs}</div>
${mods || locked ? `<div class="mood-tags">${mods}${locked}</div>` : ""}</div>`;