tooltips: simplify coin tooltips (Numismatics already shows value), include sprocket, 0.22.3 -> 0.22.4
Three corrections per user feedback: 1. Drop the conversion-crib lines -- Numismatics' built-in tooltip already shows 'Value: N spurs' so our added lines were duplicate. 2. Include sprocket (numismatics:sprocket) -- the 6th denomination I missed when first writing the script. Full set: spur, bevel, sprocket, cog, crown, sun. 3. Keep only the actually-useful hint: 'Right-click a Bank Teller block to convert denominations' -- the one piece of info that isn't on the mod's own tooltip. Decision punted (deliberately): no 8-spurs-shapeless-to-1-bevel crafting recipes. The Bank Teller is the spawn-economy anchor; crafting recipes would let players bypass the bank entirely. Players who want local conversion can place their own Teller -- which is the intended Numismatics design.
This commit is contained in:
@@ -1,24 +1,22 @@
|
||||
// Brass & Sigil — Numismatics coin tooltip helper
|
||||
//
|
||||
// Numismatics' uniform x8 denomination chain (spur=1, bevel=8, cog=64,
|
||||
// crown=512, sun=4096) isn't intuitive at a glance -- people expect
|
||||
// real-world ratios like 1p/10p/20p/50p/£1. Mod values are hardcoded,
|
||||
// so the next-best thing is putting the conversion crib right on each
|
||||
// coin's tooltip.
|
||||
//
|
||||
// Players hover any coin and instantly see how it relates to the other
|
||||
// denominations + a reminder that Bank Teller blocks convert on demand.
|
||||
// Numismatics ships its own "Value: N spurs" tooltip on each coin --
|
||||
// don't duplicate that. The one piece players need that ISN'T there is:
|
||||
// where do I convert these? Answer: Bank Teller block. Add that hint
|
||||
// to each of the 6 coin denominations (spur, bevel, sprocket, cog,
|
||||
// crown, sun -- including sprocket which we missed in v0.22.1).
|
||||
|
||||
const CRIBS = {
|
||||
'numismatics:spur': [ '= 1 Spur (base unit)', 'Bank Teller block converts.' ],
|
||||
'numismatics:bevel': [ '= 8 Spurs', 'Bank Teller block converts.' ],
|
||||
'numismatics:cog': [ '= 64 Spurs (8 Bevels)', 'Bank Teller block converts.' ],
|
||||
'numismatics:crown': [ '= 512 Spurs (8 Cogs, 64 Bevels)', 'Bank Teller block converts.' ],
|
||||
'numismatics:sun': [ '= 4096 Spurs (8 Crowns)', 'Bank Teller block converts.' ],
|
||||
};
|
||||
const COIN_IDS = [
|
||||
'numismatics:spur',
|
||||
'numismatics:bevel',
|
||||
'numismatics:sprocket',
|
||||
'numismatics:cog',
|
||||
'numismatics:crown',
|
||||
'numismatics:sun',
|
||||
];
|
||||
|
||||
ItemEvents.modifyTooltips(event => {
|
||||
for (const id in CRIBS) {
|
||||
event.add(id, CRIBS[id].map(line => Text.aqua(line)));
|
||||
}
|
||||
COIN_IDS.forEach(function(id) {
|
||||
event.add(id, Text.aqua('Right-click a Bank Teller block to convert denominations.'));
|
||||
});
|
||||
});
|
||||
|
||||
+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",
|
||||
"name": "Brass and Sigil",
|
||||
"version": "0.22.3",
|
||||
"version": "0.22.4",
|
||||
"minecraft": "1.21.1",
|
||||
"loader": {
|
||||
"type": "neoforge",
|
||||
|
||||
Reference in New Issue
Block a user