From 0cb8524ceac9d3ed70dbc9ce9a169b64ddfe55d1 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 14 Sep 2026 17:56:09 -0700 Subject: A knight's helm, for one small knight. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Claude-Session: https://claude.ai/code/session_01QYJfZ4A1TDCEY4Foq3CApR --- names/server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'names/server.js') 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(); -- cgit v1.2.3