Threat card names the dragon or raid band

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-10-26 17:06:39 +00:00
parent ce9ec3023e
commit e8b5adb01d
2 changed files with 3 additions and 1 deletions

View file

@ -6087,6 +6087,7 @@ PATCH_NOTES = [
("new", "Guild Roster shows player activity."),
("new", "Make X: \"Make one\" takes a count (1–1,000), then back to what you were doing."),
("new", "Fittings: ✓ Fitted on ones the town has (✓ Paused while damaged)."),
("fix", "Council threat card names the dragon or raid band, not always \"Raiders\"."),
]},
{"date": "2026-10-25", "title": "Titles", "notes": [
("new", "🏆 Achievements (under You): 127. Patterns, uniques, titles, emblems, looks, home. Tracks only, awards nothing."),

View file

@ -2142,7 +2142,8 @@ function council() {
${ev.recon_full && ev.intel < 3 ? boostBar(ev.recon, ev.recon_full, S.favours.informant.boost, "Informant: this stretch scouts twice as fast") : ""}`;
if (threat) {
const strength = ev.strength ?? (ev.range ? `${ev.range[0]}–${ev.range[1]}` : "?");
html += `<div class="vs"><div class="side"><span class="muted small">Our defence</span><b>${fmt(city.defence.total)}</b></div><span class="muted">vs</span><div class="side"><span class="muted small">Raiders</span><b>${strength}</b></div></div>`;
const foe = (ev.group || (ev.kind === "dragon" ? "dragon" : "raiders")).replace(/^\w/, (c) => c.toUpperCase());
html += `<div class="vs"><div class="side"><span class="muted small">Our defence</span><b>${fmt(city.defence.total)}</b></div><span class="muted">vs</span><div class="side"><span class="muted small">${esc(foe)}</span><b>${strength}</b></div></div>`;
}
html += `</div>`;
}