aboutsummaryrefslogtreecommitdiffstats
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
commit3b633767bf14510453c89867d1e2adf8c1dd7ca8 (patch)
treeee402626eb730b36b42f8568bb0f9b435c377af7
parent772e7c4499c0252f01521620c885c0dcaab84adb (diff)
downloadcoinosv3-server-3b633767bf14510453c89867d1e2adf8c1dd7ca8.tar.gz
coinosv3-server-3b633767bf14510453c89867d1e2adf8c1dd7ca8.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
-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();