Merge pull request 'Numismatics: conversion-crib coin tooltips' (#34) from feature/numismatics-tooltips into main
This commit was merged in pull request #34.
This commit is contained in:
@@ -0,0 +1,24 @@
|
|||||||
|
// 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.
|
||||||
|
|
||||||
|
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.' ],
|
||||||
|
};
|
||||||
|
|
||||||
|
ItemEvents.tooltip(event => {
|
||||||
|
for (const id in CRIBS) {
|
||||||
|
event.add(id, CRIBS[id].map(line => Text.aqua(line)));
|
||||||
|
}
|
||||||
|
});
|
||||||
+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.0",
|
"version": "0.22.1",
|
||||||
"minecraft": "1.21.1",
|
"minecraft": "1.21.1",
|
||||||
"loader": {
|
"loader": {
|
||||||
"type": "neoforge",
|
"type": "neoforge",
|
||||||
|
|||||||
Reference in New Issue
Block a user