Threat card names the dragon or raid band
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ce9ec3023e
commit
e8b5adb01d
2 changed files with 3 additions and 1 deletions
|
|
@ -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>`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue