feat: add 4.6 equipment and improve light cone views
This commit is contained in:
1 parent
7508970716
commit
22e07ea5f2
11 files changed
+121
-43
No files matched your search
@@ -0,0 +1,20 @@
|
||||
const test = require('node:test');
|
||||
const assert = require('node:assert/strict');
|
||||
const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
|
||||
test('4.6 equipment metadata and bundled artwork are available', async () => {
|
||||
const { LIGHTCONE_METADATA, RELIC_SET_METADATA, getRelicSetInfo } = await import('../js/equipment-data.js');
|
||||
const lc = LIGHTCONE_METADATA[22009];
|
||||
assert.equal(lc.names.en, "See You at the World's End!");
|
||||
assert.equal(lc.path, 'Elation');
|
||||
assert.deepEqual(lc.passive.values, [[6,12],[7,14],[8,16],[9,18],[10,20]]);
|
||||
for (const file of Object.values(lc.images)) assert.ok(fs.existsSync(path.resolve(__dirname, '..', file)));
|
||||
for (const [id, name] of [[329, "God's Moment of Joy"], [330, 'Subspace ASC Center']]) {
|
||||
const relic = RELIC_SET_METADATA[id];
|
||||
assert.equal(getRelicSetInfo(id, 'en').name, name);
|
||||
assert.ok(getRelicSetInfo(id, 'en').desc2);
|
||||
assert.equal(relic.creationAvailable, false);
|
||||
for (const slot of [5, 6]) assert.ok(fs.existsSync(path.resolve(__dirname, '..', relic.images[slot])));
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user