War table: form defaults, patch notes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a78274803b
commit
22635504e8
3 changed files with 11 additions and 3 deletions
6
game.py
6
game.py
|
|
@ -7398,6 +7398,12 @@ 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": "War council", "notes": [
|
||||
("new", "War council on the Kingdom page: propose sending guards to another town. 1h vote: a majority of active players settles it, else the votes cast. Tie: they stay."),
|
||||
("new", "Guards march 20h with their kit and wage, stand one fight, then march home. Lost fight: some die. Their posts stay empty while they're away."),
|
||||
("new", "War table: every town's threat, as far as its scouts know, defence, guards and garrison."),
|
||||
("new", "Main assault: with 2+ towns of Town size, one takes +50% weight, the rest -25%. Kingdom total stays the same. Full intel reveals it."),
|
||||
]},
|
||||
{"date": "2026-11-04", "title": "Kingdom", "notes": [
|
||||
("new", "Kingdom: found a new town. Needs a city, a charter and a second signature. Costs 20 settlers, 5,000 gold, 200 provisions."),
|
||||
("new", "Regions: ⛰️ mining, 🌲 woodcutting + hunting, 🌊 fishing, 🌾 farming. Up to +100% yield on basic materials, grows with the town. One town per region."),
|
||||
|
|
|
|||
|
|
@ -961,11 +961,12 @@ function warTable() {
|
|||
const text = { marching: `🛤️ ${dur(Math.max(0, m.arrive - S.now))}`, there: `🛡️ +${fmt(m.power)}`, returning: `🏠 ${dur(Math.max(0, m.arrive - S.now))}` }[m.status];
|
||||
return `<div class="council-row small"><span>💂 ${fmt(m.guards)} · ${esc(townName(m.from))} → ${esc(townName(m.to))}</span><span>${text}${late ? ` <span class="tag warn">Late</span>` : ""}</span><span></span></div>`;
|
||||
};
|
||||
const options = (key) => k.cities.map((c) => `<option value="${esc(c.id)}">${esc(c.name)}</option>`).join("");
|
||||
const options = (pick) => k.cities.map((c) => `<option value="${esc(c.id)}" ${c.id === pick ? "selected" : ""}>${esc(c.name)}</option>`).join("");
|
||||
const home = me.travel ? me.travel.from : me.at, other = k.cities.find((c) => c.id !== home)?.id;
|
||||
return `<div class="panel" style="margin-top:14px"><h2>War council</h2>
|
||||
${k.council.map(proposal).join("")}
|
||||
${k.marches.map(march).join("")}
|
||||
<div class="pouch-row"><select data-keep="march-from">${options()}</select> → <select data-keep="march-to">${options()}</select>
|
||||
<div class="pouch-row"><select data-keep="march-from">${options(home)}</select> → <select data-keep="march-to">${options(other)}</select>
|
||||
<input type="number" min="1" value="10" data-keep="march-guards" style="width:80px" title="Guards">
|
||||
<button class="btn primary" data-march-propose>📜 Propose</button></div>
|
||||
<p class="small muted">🛤️ ${dur(C.march_time / S.city_speed)} · vote ${dur(C.vote_time / S.city_speed)} · one fight, then home</p>
|
||||
|
|
@ -1017,7 +1018,7 @@ function kingdom() {
|
|||
: full ? `<p class="small muted">${k.cities.length} / ${k.max} towns</p>`
|
||||
: `<p class="small">${cost}</p>
|
||||
${S.city.next_tier ? `<p class="small muted">${esc(k.short)}</p>` : `<div class="pouch-row"><input type="text" maxlength="24" placeholder="Town name" data-keep="charter-name">
|
||||
<select data-keep="charter-region">${open.map(([id, r]) => `<option value="${id}">${r.icon} ${esc(r.name)} · ${regionPerks(r, 0.5)}</option>`).join("")}</select>
|
||||
<select data-keep="charter-region" class="wide">${open.map(([id, r]) => `<option value="${id}">${r.icon} ${esc(r.name)} · ${regionPerks(r, 0.5)}</option>`).join("")}</select>
|
||||
<button class="btn primary" data-charter-new ${k.short ? "disabled" : ""}>📜 Draw up</button></div>`}`;
|
||||
return `<div class="grid">${towns}</div>
|
||||
<div class="grid" style="margin-top:14px">
|
||||
|
|
|
|||
|
|
@ -957,3 +957,4 @@ button.swatch { width: 36px; height: 36px; }
|
|||
.pouch-row select, .pouch-row input[type=text] { min-width: 0; flex: 1 1 140px; }
|
||||
.council-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
|
||||
@media (max-width: 520px) { .council-row { grid-template-columns: minmax(0, 1fr) auto; } }
|
||||
.pouch-row select.wide { flex-basis: 100%; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue