From 76778a660a0bb4dcb780dc235578eb52ad0c03b4 Mon Sep 17 00:00:00 2001 From: rope Date: Tue, 20 Oct 2026 12:13:01 +0100 Subject: [PATCH] Master builder: striped boosted stretch under the site bar Co-Authored-By: Claude Opus 5.5 --- static/app.js | 8 ++++++-- static/styles.css | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/static/app.js b/static/app.js index 9b73cd8..f1d6d5c 100644 --- a/static/app.js +++ b/static/app.js @@ -790,6 +790,9 @@ function siteBanner() { const hire = S.favours.builders; const working = me.action?.id === "labour"; const builders = S.players.filter((p) => p.skill === "construction" && p.doing === "Work on the building site").map((p) => esc(p.name)); + // A master builder doubles the next `boost` labour players put in: that stretch of the bar fills twice as fast. + const done = Math.min(100, work.labour / work.needed * 100); + const boosted = Math.min(100, (work.labour + 2 * hire.boost) / work.needed * 100); return ``; } diff --git a/static/styles.css b/static/styles.css index 4245b94..46bbc7a 100644 --- a/static/styles.css +++ b/static/styles.css @@ -142,6 +142,10 @@ main { padding: 24px; max-width: 1200px; width: 100%; } .bar.xp > span { background: var(--xp); } .bar.gold > span { background: var(--gold); } .bar.thick { height: 12px; } +.site-bar { position: relative; } +.site-bar > span { position: relative; z-index: 1; } +.site-bar > span.boost { position: absolute; left: 0; top: 0; z-index: 0; + background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--gold) 45%, transparent) 0 6px, color-mix(in srgb, var(--gold) 20%, transparent) 6px 12px); } .btn { border: 1px solid var(--line); background: var(--panel-2); border-radius: 8px;