From 141ac524702ecc56e0c5676ac360c04b7a6ab285 Mon Sep 17 00:00:00 2001 From: rope Date: Thu, 29 Oct 2026 13:46:12 +0000 Subject: [PATCH] No coal past steel; ores pay like hunts, bars 1.5x ore Co-Authored-By: Claude Opus 5.5 --- game.py | 13 ++++++++----- static/app.js | 4 ++-- tests/test_game.py | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/game.py b/game.py index c10a432..6f1326f 100644 --- a/game.py +++ b/game.py @@ -91,14 +91,15 @@ ITEMS = { TIER_LEVELS = [1, 15, 30, 45, 60, 75] # each tier's gathering / smelting level; also to wear and use it # key, name, ore (item id, name, icon, value), coal per bar, bar icon, bar value (None: its ore and coal, -# marked up), smithy level, handle wood +# marked up), smithy level, handle wood. Only steel takes coal. Past it, an ore pays what a hunt +# of its tier does and its bar is worth 1.5ร— the ore, as leather is its hide. METALS = [ ("copper", "Copper", ("copper_ore", "Copper ore", "๐ŸŸค", 2), 0, "๐ŸŸง", 5, 0, "logs"), ("iron", "Iron", ("iron_ore", "Iron ore", "โšซ", 4), 0, "โฌ›", 10, 1, "oak_logs"), ("steel", "Steel", None, 2, "๐Ÿ”ฒ", None, 2, "willow_logs"), - ("mithril", "Mithril", ("mithril_ore", "Mithril ore", "๐Ÿ”ต", 15), 3, "๐ŸŸฆ", None, 3, "maple_logs"), - ("adamant", "Adamant", ("adamantite_ore", "Adamantite ore", "๐ŸŸข", 30), 4, "๐ŸŸฉ", None, 4, "yew_logs"), - ("rune", "Rune", ("runite_ore", "Runite ore", "๐Ÿ’ ", 55), 5, "๐ŸŸช", None, 5, "magic_logs"), + ("mithril", "Mithril", ("mithril_ore", "Mithril ore", "๐Ÿ”ต", 21), 0, "๐ŸŸฆ", 32, 3, "maple_logs"), + ("adamant", "Adamant", ("adamantite_ore", "Adamantite ore", "๐ŸŸข", 36), 0, "๐ŸŸฉ", 54, 4, "yew_logs"), + ("rune", "Rune", ("runite_ore", "Runite ore", "๐Ÿ’ ", 63), 0, "๐ŸŸช", 95, 5, "magic_logs"), ] # piece, slot, display noun, bars, smithing level above the tier, power by tier, armour by tier PIECES = [ @@ -6789,7 +6790,9 @@ 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-10-29", "title": "Frames", "notes": [ + {"date": "2026-10-29", "title": "Frames, no coal past steel", "notes": [ + ("balance", "Mithril, adamant and rune bars: no coal. Steel still takes 2."), + ("balance", "Ore worth: mithril 15 โ†’ 21, adamantite 30 โ†’ 36, runite 55 โ†’ 63. Bars: mithril 47 โ†’ 32, adamant 74 โ†’ 54, rune 114 โ†’ 95."), ("new", "Construction: frames for every wood, Lv 12 / 26 / 41 / 56 / 71 / 86. 4 planks + hardware."), ("balance", "Building levels 3+ take frames instead of planks: 1 frame per 5 planks. Funded planks became frames, odd ones went to the stockpile."), ]}, diff --git a/static/app.js b/static/app.js index 7c37d37..3ad15ce 100644 --- a/static/app.js +++ b/static/app.js @@ -1266,7 +1266,7 @@ function fireBand(skill) { const id = fireOfSkill(skill); if (!id) return ""; const n = fireNow(id), spec = C.fires[id], lit = n.heat >= 0; - const pays = lit && `Pays the log for tier ${ROMAN[n.heat]} and below${id === "forge" ? ", and a coal" : ""}`; + const pays = lit && `Pays the log for tier ${ROMAN[n.heat]} and below${id === "forge" ? ", and a coal for steel" : ""}`; return `
${glyph(spec.glyph, lit ? flameTint(n.heat) : "#98a1b4")}
${esc(spec.name)} ${lit ? `${C.flames[n.heat][0]} ยท ` : "Out"}
@@ -2502,7 +2502,7 @@ function orderNews(state) { favourSeen = Object.fromEntries(orders.map((o) => [o.id, Math.round((o.favour || {})[uid] || 0)])); } -// What one run of a recipe takes right now: a lit fire pays its log (the forge a coal too). +// What one run of a recipe takes right now: a lit fire pays its log (the forge a coal too, on steel). const runInputs = (a) => S.me.fuelled?.[a.id] || a.inputs; const firePays = (a, id, qty) => `the ${C.fires[a.fire].name.toLowerCase()} pays ${fmt(qty)}`; diff --git a/tests/test_game.py b/tests/test_game.py index 4e7df40..d02a455 100644 --- a/tests/test_game.py +++ b/tests/test_game.py @@ -3111,7 +3111,7 @@ class FirekeepingTest(unittest.TestCase): self.assertEqual(game.fire_inputs(self.world, copper), {"copper_ore": 1}) self.fires["forge"]["fuel"] = [{"tier": 3, "left": 600, "by": "kai"}] self.assertEqual(game.fire_inputs(self.world, steel), {"iron_ore": 1, "coal": 1}) - self.assertEqual(game.fire_inputs(self.world, game.ACTION_BY_ID["smith_mithril_bar"]), {"mithril_ore": 1, "coal": 2}) + self.assertEqual(game.fire_inputs(self.world, game.ACTION_BY_ID["smith_mithril_bar"]), {"mithril_ore": 1}) def test_a_potion_brewed_from_logs_keeps_its_ingredient_log(self): brew = game.ACTION_BY_ID["brew_woodcutting_potion_1"]