From 089f3d59b77fe79a9333c7a6f8baf8597bf42fca Mon Sep 17 00:00:00 2001 From: rope Date: Sun, 25 Oct 2026 19:22:03 +0000 Subject: [PATCH] Combat page: show health potion Co-Authored-By: Claude Opus 5.5 --- game.py | 1 + static/app.js | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/game.py b/game.py index b7f8f98..64aff2d 100644 --- a/game.py +++ b/game.py @@ -5999,6 +5999,7 @@ PATCH_NOTES = [ ("new", "Fishing 50 also earns a second title: Master baiter."), ("balance", "Boiling hide glue now uses the kitchen fire: while it's lit, glue costs no logs."), ("fix", "Dungeons wait for the leader to press Start, so groups of 3 and 4 can form. No one can join once it starts."), + ("fix", "Combat page shows your health potion: drunk on its own, no need to equip. The other card now reads \"No combat potion\"."), ]}, {"date": "2026-10-24", "title": "Dungeon loot", "notes": [ ("new", "Masterwork patterns: every dungeon boss can drop one of 7 (15% from a mini-boss, 35% from the last boss, " diff --git a/static/app.js b/static/app.js index 17a7012..8bb4593 100644 --- a/static/app.js +++ b/static/app.js @@ -618,6 +618,14 @@ function plotsPanel() { // A skill's potion and tool side by side, each a slot with what you could switch to beside it. function skillGear(skill) { const me = S.me, cards = []; + // Health potions aren't drunk ahead: a fight takes the best one in the bank by itself. + if (skill === "combat") { + const hp = me.health_potion, it = hp && item(hp); + cards.push(`
+ ${item(hp || "health_potion_1").icon} +
${it ? `${esc(it.name)}+${it.drink} HP under ${Math.round(C.potion_below * 100)}% · ${fmt(me.bank[hp])} in bank · auto` + : `No health potion`}
`); + } const kinds = Object.entries(C.items).filter(([, it]) => it.potion?.skill === skill); if (kinds.length) { const active = me.potions[skill], it = active && item(active.item); @@ -626,7 +634,7 @@ function skillGear(skill) { cards.push(`
${it ? it.icon : glyph("round-bottom-flask", "#98a1b4")}
${it ? `${esc(it.name)}${esc(it.potion.text)} · ${fmt(active.charges)} uses` - : `No potion`}
+ : `${skill === "combat" ? "No combat potion" : "No potion"}`}
${others ? `
${others}
` : ""}`); } for (const [kind, none] of [["tool", "No tool"], ["station", "No station"]]) {