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:
@@ -64,15 +64,18 @@ const PLOT_DEFS = new Map([
|
|||||||
const REFUND_FRACTION = 0.5; // released plots refund 50% of purchase price
|
const REFUND_FRACTION = 0.5; // released plots refund 50% of purchase price
|
||||||
|
|
||||||
// ─── Numismatics coin handling ────────────────────────────────────────
|
// ─── 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 = {
|
const COIN_VALUES = {
|
||||||
'numismatics:spur': 1,
|
'numismatics:spur': 1,
|
||||||
'numismatics:bevel': 8,
|
'numismatics:bevel': 8,
|
||||||
'numismatics:cog': 64,
|
'numismatics:sprocket': 64,
|
||||||
'numismatics:crown': 512,
|
'numismatics:cog': 512,
|
||||||
'numismatics:sun': 4096,
|
'numismatics:crown': 4096,
|
||||||
|
'numismatics:sun': 32768,
|
||||||
};
|
};
|
||||||
const DENOMS_DESC = ['numismatics:sun', 'numismatics:crown', 'numismatics:cog',
|
const DENOMS_DESC = ['numismatics:sun', 'numismatics:crown', 'numismatics:cog',
|
||||||
'numismatics:bevel', 'numismatics:spur'];
|
'numismatics:sprocket', 'numismatics:bevel', 'numismatics:spur'];
|
||||||
|
|
||||||
function countCoins(player) {
|
function countCoins(player) {
|
||||||
let total = 0;
|
let total = 0;
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "Brass-and-Sigil pack.lock.json - generated, do not edit by hand unless you know what you are doing",
|
"$schema": "Brass-and-Sigil pack.lock.json - generated, do not edit by hand unless you know what you are doing",
|
||||||
"name": "Brass and Sigil",
|
"name": "Brass and Sigil",
|
||||||
"version": "0.22.4",
|
"version": "0.22.5",
|
||||||
"minecraft": "1.21.1",
|
"minecraft": "1.21.1",
|
||||||
"loader": {
|
"loader": {
|
||||||
"type": "neoforge",
|
"type": "neoforge",
|
||||||
|
|||||||
Reference in New Issue
Block a user