openvibers/openvibe.inventory Commits

fx_vegas (Josh Vegas): a one-of-a-kind name effect, issued by Live (#66)

OP OpenVibers committed 22 days ago · 23dd964a27 · 3 files, +19 −3

Changes

ddiff --git a/server/data/live-definitions.json b/server/data/live-definitions.json
iindex 2ec3aa7..e861d83 100644
---- a/server/data/live-definitions.json
++++ b/server/data/live-definitions.json
@@@ -196,6 +196,21 @@
"css_class": "name-fx-divine"
}
},
++ {
++ "alias": "fx_vegas",
++ "kind": "live.name_effect",
++ "name": "Josh Vegas",
++ "description": "Slot reels and casino lights. One of a kind: granted to its one holder, never sold or earned",
++ "art": {
++ "emoji": "🎰",
++ "token": "name-fx-vegas"
++ },
++ "rarity": "legendary",
++ "attributes": {
++ "tier": 6,
++ "css_class": "name-fx-vegas"
++ }
++ },
{
"alias": "px_sparkle",
"kind": "live.particle",
ddiff --git a/test/discovery.test.js b/test/discovery.test.js
iindex 3ec526d..d48a33a 100644
---- a/test/discovery.test.js
++++ b/test/discovery.test.js
@@@ -41,7 +41,8 @@ const PRIVATE = ['/auth/', '/api/'];
const ws = await t.get('/workshop');
assert.match(ws.text, /<meta name="robots" content="index, follow">/, 'and indexable');
const items = [...r.text.matchAll(/<loc>https:\/\/inventory\.openvibe\.network\/items\/itd_/g)];
-- assert.strictEqual(items.length, 70, `expected 70 item entries, got ${items.length}`);
++ const expected = require('../server/data/live-definitions.json').definitions.length;
++ assert.strictEqual(items.length, expected, `expected ${expected} item entries, got ${items.length}`);
for (const p of ['/me', '/u/', '/api/']) assert.ok(!r.text.includes(`<loc>https://inventory.openvibe.network${p}`), `private path in sitemap: ${p}`);
for (const p of ['/auth/login', '/api/v1/ping']) assert.ok(!r.text.includes(`<loc>https://inventory.openvibe.network${p}</loc>`), `${p} is not a public page`);
const lastmods = [...r.text.matchAll(/<lastmod>([^<]+)<\/lastmod>/g)].map((m) => m[1]);
ddiff --git a/test/inventory-api.test.js b/test/inventory-api.test.js
iindex 2741fbd..f89e4ae 100644
---- a/test/inventory-api.test.js
++++ b/test/inventory-api.test.js
@@@ -24,12 +24,12 @@ const { boot, check, done } = require('./helpers/boot');
let granted;
try {
-- await check('boot registers Live\'s five kinds, the Workshop\'s badge and Live\'s 70 cosmetics, published, found by Live\'s ids', async () => {
++ await check('boot registers Live\'s five kinds, the Workshop\'s badge and every one of Live\'s cosmetics, published, found by Live\'s ids', async () => {
const kinds = (await api('/kinds')).json().kinds;
assert.deepStrictEqual(kinds.map((k) => k.id), ['live.chat_tag', 'live.hat', 'live.name_effect', 'live.particle', 'live.voice', 'network.badge'], 'Live\'s five and the Workshop\'s badge');
for (const k of kinds) valid('inventory.kind@1', k);
const defs = (await api('/definitions?limit=500')).json().definitions;
-- assert.strictEqual(defs.length, 70);
++ assert.strictEqual(defs.length, require('../server/data/live-definitions.json').definitions.length, 'one definition per entry of the seed file (71 since fx_vegas, 2026-10-22)');
for (const d of defs) valid('inventory.definition@1', d);
rainbow = defs.find((d) => (d.aliases || []).includes('fx_rainbow'));
crown = defs.find((d) => (d.aliases || []).includes('hat_crown'));