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.
This commit is contained in:
2026-05-23 17:59:57 +00:00
parent 179486bd2c
commit b85eef04bd
2 changed files with 10 additions and 7 deletions
@@ -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;