Food variety tiles link to their recipes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-10-28 11:45:32 +00:00
parent b385012c45
commit 97ef606bbf
2 changed files with 2 additions and 1 deletions

View file

@ -2368,7 +2368,7 @@ function reqRow(r) {
// Every kind of food: lit when the stockpile holds a day of it, faded red when it doesn't.
function foodKinds(r) {
return `<div class="food-kinds">${Object.entries(r.foods).map(([id, meals]) =>
`<span class="${meals >= r.day ? "" : "missing"}" title="${esc(`${item(id).name} · ${fmt(meals)} / ${fmt(r.day)} meals`)}">${item(id).icon}</span>`).join("")}</div>`;
`<span class="${meals >= r.day ? "" : "missing"}"${goto(id)} title="${esc(`${item(id).name} · ${fmt(meals)} / ${fmt(r.day)} meals${gotoTip(id)}`)}">${item(id).icon}</span>`).join("")}</div>`;
}
function raidPrep(ev) {