diff --git a/game.py b/game.py index 53da5ca..4613b6e 100644 --- a/game.py +++ b/game.py @@ -4100,7 +4100,7 @@ for _index, (_area, _level, _prefix, _races) in enumerate(AREAS): ACTION_GLYPHS[f"fight_{_slug(_race)}"] = (RACE_GLYPHS[_race], TIER_TINTS[_index]) UI_GLYPHS = ["two-coins", "sparkles", "hearts", "prayer", "checked-shield", "magic-shield", "stopwatch", "swordman", "biceps", "cancel", "scroll-unfurled", "striking-diamonds", "archery-target", "dodging", "shield-reflect", - "cape", "gem-pendant", "gauntlet", "ring", "quiver", "leather-boot", "crystal-ball", "hot-meal", "round-bottom-flask", "visored-helm", "breastplate", + "cape", "gem-pendant", "gauntlet", "ring", "quiver", "leather-boot", "crystal-ball", "hot-meal", "knife-fork", "round-bottom-flask", "visored-helm", "breastplate", "leg-armor", "pointy-sword", "round-shield", *(kind["glyph"] for kind in DAMAGE_TYPES.values()), *(stat["glyph"] for stat in JEWEL_STATS.values())] diff --git a/static/app.js b/static/app.js index 9a91875..77a0f12 100644 --- a/static/app.js +++ b/static/app.js @@ -30,7 +30,7 @@ const $ = (sel, root = document) => root.querySelector(sel); // Icons are game-icons.net glyphs (CC BY 3.0) from one sprite, tinted per tier or material. const glyph = (name, tint) => ``; -const COIN = glyph("two-coins", "#e0b04a"), FAVOUR = glyph("sparkles", "#b98ce8"), HEART = glyph("hearts", "#e2645c"); +const COIN = glyph("two-coins", "#e0b04a"), ANY_FOOD = glyph("knife-fork", "#d9c6a0"), FAVOUR = glyph("sparkles", "#b98ce8"), HEART = glyph("hearts", "#e2645c"); function iconise(content) { const entries = [...Object.values(content.items), ...content.skills, ...Object.values(content.classes), @@ -1571,17 +1571,17 @@ function foodSlot(p, picked) { const none = !p.edible.length; const tip = none ? "No food in your bank" : id ? `Food: ${item(id).name}, heals ${item(id).heal}` : "Food: cheapest first"; return ``; + ${none ? glyph("hot-meal", "#e2645c") : id ? item(id).icon : ANY_FOOD}${id ? `${fmt(p.bank[id])}` : ""}`; } function foodPanel(p) { const id = p.food && p.bank[p.food] ? p.food : null; const head = id ? `
${item(id).icon}${esc(item(id).name)} ${HEART} ${item(id).heal} ยท ${fmt(p.bank[id])} left
` - : `
${glyph("two-coins", "#e0b04a")}Cheapest first
`; + : `
${ANY_FOOD}Cheapest first
`; const tiles = [...p.edible].sort((a, b) => item(a).heal - item(b).heal).map((f) => ``); - const cheap = ``; + const cheap = ``; return head + (p.edible.length ? `
Eat first
${cheap}${tiles.join("")}
` : `
No food in your bank.
`); } diff --git a/static/icons.svg b/static/icons.svg index b3b25e3..16b39a0 100644 --- a/static/icons.svg +++ b/static/icons.svg @@ -105,6 +105,7 @@ +