From b85eef04bd173b3b286a15b2294e0dc8dc6d64c4 Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 23 May 2026 17:59:57 +0000 Subject: [PATCH] plots: correct Numismatics coin chain (6 denoms incl sprocket), 0.22.4 -> 0.22.5 Was: 5-denom x8 chain (spur=1, bevel=8, cog=64, crown=512, sun=4096). Now: 6-denom x8 chain with sprocket inserted between bevel and cog. Verified in-game (user reported Sun = 64 Cogs, which only fits these values: spur=1, bevel=8, sprocket=64, cog=512, crown=4096, sun=32768). Plot purchase math (countCoins, takeCoins, giveCoins) was using the old 5-denom map: cog would have been counted as 64 spurs when it's actually 512, and sprockets weren't counted at all. Plot prices remain at 100/250/600 spurs which are still appropriate small-change amounts; user can edit PLOT_DEFS to raise once playtesting confirms desired economy scale. --- pack/overrides/kubejs/server_scripts/plots.js | 15 +++++++++------ pack/pack.lock.json | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/pack/overrides/kubejs/server_scripts/plots.js b/pack/overrides/kubejs/server_scripts/plots.js index d4b3852..a109dbd 100644 --- a/pack/overrides/kubejs/server_scripts/plots.js +++ b/pack/overrides/kubejs/server_scripts/plots.js @@ -64,15 +64,18 @@ const PLOT_DEFS = new Map([ const REFUND_FRACTION = 0.5; // released plots refund 50% of purchase price // ─── Numismatics coin handling ──────────────────────────────────────── +// 6 denominations on a uniform x8 chain (verified in-game 2026-05-23 via +// user-reported Sun = 64 Cogs, which back-calculates to these values). const COIN_VALUES = { - 'numismatics:spur': 1, - 'numismatics:bevel': 8, - 'numismatics:cog': 64, - 'numismatics:crown': 512, - 'numismatics:sun': 4096, + 'numismatics:spur': 1, + 'numismatics:bevel': 8, + 'numismatics:sprocket': 64, + 'numismatics:cog': 512, + 'numismatics:crown': 4096, + 'numismatics:sun': 32768, }; const DENOMS_DESC = ['numismatics:sun', 'numismatics:crown', 'numismatics:cog', - 'numismatics:bevel', 'numismatics:spur']; + 'numismatics:sprocket', 'numismatics:bevel', 'numismatics:spur']; function countCoins(player) { let total = 0; diff --git a/pack/pack.lock.json b/pack/pack.lock.json index 9d532dc..a82b813 100644 --- a/pack/pack.lock.json +++ b/pack/pack.lock.json @@ -1,7 +1,7 @@ { "$schema": "Brass-and-Sigil pack.lock.json - generated, do not edit by hand unless you know what you are doing", "name": "Brass and Sigil", - "version": "0.22.4", + "version": "0.22.5", "minecraft": "1.21.1", "loader": { "type": "neoforge", -- 2.52.0