aboutsummaryrefslogtreecommitdiffstats
path: root/names/server.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-14 17:56:09 -0700
committerAdam Soltys <[email protected]>2026-09-14 17:56:09 -0700
commit0cb8524ceac9d3ed70dbc9ce9a169b64ddfe55d1 (patch)
tree7a146c8117ab36b3b0030a6c183f430253eb4efa /names/server.js
parent135dd91a384469967a277eae3b685717fa6d2340 (diff)
downloadcoinosv3-0cb8524ceac9d3ed70dbc9ce9a169b64ddfe55d1.tar.gz
coinosv3-0cb8524ceac9d3ed70dbc9ce9a169b64ddfe55d1.zip
A knight's helm, for one small knight.
A gifted hat that covers the whole face — its own square drawing over the avatar rather than perched on it: steel great helm, cross slit, breathing holes, a red plume. Never sold; the registrar's gift endpoint knows it beside the beta hard hat. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01QYJfZ4A1TDCEY4Foq3CApR
Diffstat (limited to 'names/server.js')
-rw-r--r--names/server.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/names/server.js b/names/server.js
index ca8ff3c..881fce7 100644
--- a/names/server.js
+++ b/names/server.js
@@ -1202,7 +1202,8 @@ Bun.serve({
}
if (!/^[0-9a-f]{64}$/.test(pk)) return json({ error: 'bad pubkey' }, 400);
const hat = String(b.hat || '');
- if (!(hat in HAT_PRICES) && hat !== 'construction') return json({ error: 'no such hat' }, 400);
+ // giftable but never sold: the beta hard hat, and the knight's helm
+ if (!(hat in HAT_PRICES) && !['construction', 'knight'].includes(hat)) return json({ error: 'no such hat' }, 400);
const net = hatNetOf(b.net);
grantHat(pk, hat, net, { equip: false });
persist();