From 70ecc54606e15d44520d57e255139de3d6f790f6 Mon Sep 17 00:00:00 2001 From: rope Date: Wed, 4 Nov 2026 19:21:43 +0000 Subject: [PATCH] Roster table: town column Co-Authored-By: Claude Opus 5.5 --- game.py | 3 +++ static/app.js | 6 ++++-- static/styles.css | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/game.py b/game.py index 03f7dff..82b84d8 100644 --- a/game.py +++ b/game.py @@ -7787,6 +7787,9 @@ ORDER_RECIPES, ORDER_RAW = _order_sources() # What changed, shown on the Patch notes page. Newest first; every shipped change adds a # line here (new / balance / fix), and a new release a new entry on top. PATCH_NOTES = [ + {"date": "2026-11-04", "title": "Roster", "notes": [ + ("new", "Roster table shows each player's town."), + ]}, {"date": "2026-11-04", "title": "Icons", "notes": [ ("new", "Icons replace emoji across the game. Your own board messages stay as typed."), ]}, diff --git a/static/app.js b/static/app.js index 1d34c04..54885f8 100644 --- a/static/app.js +++ b/static/app.js @@ -2925,6 +2925,7 @@ function skillGroups(cls) { } const rosterSub = (p) => `${p.look?.title ? `${esc(p.look.title)} · ` : ""}${C.classes[p.cls].icon} ${C.classes[p.cls].name}`; +const rosterTown = (p) => p.travel ? `🛤️ ${esc(townName(p.travel))}` : esc(townName(p.at)); const rosterDoing = (p) => p.doing ? `${skillOf(p.skill).icon} ${esc(p.doing)}` : `Idle`; function rosterCards(players) { @@ -2960,6 +2961,7 @@ function rosterTable(players) {
${crest(p.look, 30)}${presence(p)}
${rosterSub(p)}${lastSeen(p)}
${p.total} + ${rosterTown(p)}
${rosterDoing(p)}${p.garrison ? `🛡️` : ""}${joinButton(p)}
${skills.map((s) => { const lvl = p.levels[s.id]; @@ -2967,8 +2969,8 @@ function rosterTable(players) { }).join("")} ${fmt(p.donated)}`).join(""); return `
- ${groups.map(([name, list]) => ``).join("")} - ${skills.map((s) => ``).join("")} + ${groups.map(([name, list]) => ``).join("")} + ${skills.map((s) => ``).join("")}${rows}
${esc(name)}
PlayerTotalDoing${s.icon}${FAVOUR}
${esc(name)}
PlayerTotalTownDoing${s.icon}${FAVOUR}
`; } diff --git a/static/styles.css b/static/styles.css index 1ff53a2..3a881ca 100644 --- a/static/styles.css +++ b/static/styles.css @@ -375,10 +375,10 @@ button.who { background: none; border: 0; padding: 0; font-weight: 700; text-ali .roster-table td.favour, .roster-table th.favour { text-align: right; } .who-cell, .roster-table .doing { display: flex; align-items: center; gap: 8px; } .who-cell { gap: 10px; min-width: 170px; } -/* Phone: crest and name only, no Doing column, so the skills get the room. */ +/* Phone: crest and name only, no Town or Doing column, so the skills get the room. */ @media (max-width: 700px) { .roster-table { padding: 4px 8px; } - .roster-table .doing-col, .who-cell .small { display: none; } + .roster-table .town-col, .roster-table .doing-col, .who-cell .small { display: none; } .who-cell { min-width: 0; gap: 6px; } .roster-table td, .roster-table th { padding-left: 3px; padding-right: 3px; } }