Add Le Cortège de la Lune Écarlate, the permanent ukiyo-e Sokko TCG collection
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m42s
Validate and deploy Sokko G / deploy (push) Successful in 18s

Add its 31 cards, its destination L'Île aux Cent Lanternes, five expedition
tags and the collection profile. The collection stays closed until an
administrator sets its drop rates and opens it.

Also clean the backdrop layer behind the wolf.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-23 23:59:03 +01:00
parent d4b7398716
commit 63ddb02c5d
15 changed files with 966 additions and 26 deletions

View file

@ -122,7 +122,7 @@ test("cards API authenticates dev sessions and protects mutations", async (t) =>
const config = await call(handler, { path: "/api/cards/config" });
assert.equal(config.status, 200);
assert.equal(config.json.enabled, true);
assert.equal(config.json.catalog.collections.length, 6);
assert.equal(config.json.catalog.collections.length, 7);
const login = await call(handler, { method: "POST", path: "/api/cards/auth/dev", body: {} });
assert.equal(login.status, 200);

View file

@ -119,7 +119,7 @@ test("each player draws the day among the destinations their cards unlock", () =
const before = service.expeditions.getExpeditions(player.id);
assert.deepEqual(before.destinations.map((item) => [item.id, item.level, item.star]), [["light-currents", 0, 1]]);
assert.ok(before.unlocked.count >= 1);
assert.equal(before.unlocked.total, 15);
assert.equal(before.unlocked.total, 16);
// Sa carte du Cœur du Nuage complète le tirage du jour, avec les niveaux 1 et 2 ; l'autre joueur, sans la carte, ne la voit pas.
database.transaction(() => service.addCard(player.id, "cosmic-cloud-heart-standard"));
const after = service.expeditions.getExpeditions(player.id).destinations;
@ -435,7 +435,7 @@ test("administrators tune settings with bounds and history, and can cancel an ex
assert.ok(service.getAdminHistory(admin.id).entries.some((entry) => entry.type === "expedition_settings_updated"));
const dashboard = service.getAdminDashboard(admin.id);
assert.equal(dashboard.expeditionSettings.settings.enabled, true);
assert.equal(dashboard.expeditionSettings.destinations.length, 17);
assert.equal(dashboard.expeditionSettings.destinations.length, 18);
assert.ok(dashboard.expeditionSettings.schema.some((field) => field.path === "loot.eclatsPerHourCents"));
const view = service.expeditions.getExpeditions(player.id);

View file

@ -103,7 +103,7 @@ test("catalog validation refuses broken expedition data", () => {
test("destinations order the four stats and stay satisfiable by rare or better cards", () => {
const visible = destinations.filter((destination) => !destination.hidden);
assert.equal(visible.length, 15);
assert.equal(visible.length, 16);
assert.deepEqual(destinations.filter((destination) => destination.hidden).map((destination) => destination.id), ["crimson-passage", "lost-observatory"]);
// Chaque couple (stat principale, seconde stat) a au moins une destination : les profils restent variés.
assert.equal(new Set(visible.map((destination) => destination.stats.slice(0, 2).join("+"))).size, 12);
@ -285,7 +285,7 @@ test("destination landscapes point to existing images of their folder", async ()
}
// Une destination liée par collection : celle de sa carte de destination des paquets.
assert.deepEqual(raw.filter((destination) => destination.rewardCollectionId).map((destination) => [destination.id, destination.rewardCollectionId]).sort(),
[["cosmic-cloud-heart", "primordial-nebula"], ["grand-astral-hall", "astral-genesis"], ["level-isles", "dream-arcade"], ["reunited-isles-feast", "long-night"]]);
[["cosmic-cloud-heart", "primordial-nebula"], ["grand-astral-hall", "astral-genesis"], ["hundred-lantern-isle", "crimson-procession"], ["level-isles", "dream-arcade"], ["reunited-isles-feast", "long-night"]]);
const crater = raw.findIndex((destination) => destination.id === "scale-crater");
assert.throws(() => validateExpeditionDestinations(raw.map((destination, index) => (index === crater ? { ...destination, specialty: undefined, rewardCollectionId: "long-night" } : destination)), catalog), /collection of the destination card/);
// Destinations non liées : chaque profil de butin possible une fois et une seule (chaque spécialité simple, chaque paire, une neutre).
@ -321,11 +321,11 @@ test("destination specialties raise one or two rewards and lower the others", ()
// Destinations de collection : au plus `day.maxCollectionDestinations` par jour, sauf si le joueur n'a pas assez d'autres destinations.
test("the daily draw caps destinations linked to a collection, unless nothing else can fill the day", () => {
const linked = new Set(destinations.filter((destination) => destination.rewardCollectionId != null).map((destination) => destination.id));
assert.deepEqual([...linked].sort(), ["cosmic-cloud-heart", "grand-astral-hall", "level-isles", "reunited-isles-feast"]);
assert.deepEqual([...linked].sort(), ["cosmic-cloud-heart", "grand-astral-hall", "hundred-lantern-isle", "level-isles", "reunited-isles-feast"]);
assert.equal(settings.day.maxCollectionDestinations, 2);
const linkedIn = (draw) => draw.filter((entry) => linked.has(entry.destinationId)).length;
const randoms = [() => 0, (max) => max - 1, (max) => Math.floor(max / 2)];
// Les quatre destinations de collection et deux autres : deux de collection au plus, et toujours les deux autres.
// Les cinq destinations de collection et deux autres : deux de collection au plus, et toujours les deux autres.
const six = new Set([...linked, "light-currents", "great-void"]);
for (const random of randoms) {
const draw = drawExpeditionDay(destinations, settings, [], random, six);
@ -456,7 +456,7 @@ test("awakening tiers stop levels, duplicates and experience until the card awak
test("commons carry equipment spread over a fixed budget, and every card has synergy partners", () => {
const commons = rawCatalog.cards.filter((card) => card.expedition?.equipment?.stats);
assert.equal(commons.length, 65);
assert.equal(commons.length, 75);
for (const card of commons) assert.equal(Object.values(card.expedition.equipment.stats).reduce((sum, value) => sum + value, 0), 6, card.id);
// Les communes des Carnets des Veilleurs portent chacune un pouvoir, et aucune stat ; l'Adaptation est portée par une commune de
// trois autres collections.