No coal past steel; ores pay like hunts, bars 1.5x ore

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-10-29 13:46:12 +00:00
parent 3f30e8ccdd
commit 141ac52470
3 changed files with 11 additions and 8 deletions

13
game.py
View file

@ -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."),
]},

View file

@ -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 `<div class="fire-band ${lit ? "lit" : ""}" style="--c:${flameTint(n.heat)}">
${glyph(spec.glyph, lit ? flameTint(n.heat) : "#98a1b4")}
<div class="grow"><b>${esc(spec.name)}</b> <span class="muted small">${lit ? `${C.flames[n.heat][0]} · <span data-fire-time="${id}"></span>` : "Out"}</span></div>
@ -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)}`;

View file

@ -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"]