Replace the prismatic backdrop with a prismatic parallax and redraw the Long Night legendaries
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m36s
Validate and deploy Sokko G / deploy (push) Successful in 17s

The prismatic-backdrop finish, now labelled « Parallaxe prismatique », lays a
card's cut-out hero over a backdrop without it and shifts both with the tilt,
the palette tinting the backdrop, lighting each layer's highlights and fringing
the hero. Cards declare the backdrop next to the cutout (backdropImage,
fullBackdropImage), validated by name. The Visual Lab is back to its usual
effect cards. The three Long Night legendaries are redrawn in the collection's
style, and La Pioche Mythique gets its parallax layers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-21 21:06:37 +01:00
parent 3f70a5638d
commit efdb5c558c
27 changed files with 279 additions and 50 deletions

View file

@ -138,6 +138,8 @@ test("full-art mythics need a full image and declare one per legendary card", as
await access(`website/public${card.fullImage}`);
if (card.cutoutImage) await access(`website/public${card.cutoutImage}`);
if (card.fullCutoutImage) await access(`website/public${card.fullCutoutImage}`);
if (card.backdropImage) await access(`website/public${card.backdropImage}`);
if (card.fullBackdropImage) await access(`website/public${card.fullBackdropImage}`);
}
// Une illustration à zones vides reprend le nom de l'illustration pleine, suffixé `__cutout`.
assert.ok(baseCatalog.cards.some((card) => card.fullCutoutImage?.endsWith("__full__cutout.webp")));
@ -147,6 +149,14 @@ test("full-art mythics need a full image and declare one per legendary card", as
const wrongStandardCutout = structuredClone(rawCatalog);
wrongStandardCutout.cards.find((card) => card.id === "mythic-card-pull").cutoutImage = "/static/img/cards/astral-genesis/legendary/mythic_card_pull__full__cutout.webp";
assert.throws(() => prepareVersionedCatalog(wrongStandardCutout), /cutout image must be its image suffixed/);
// La parallaxe pose le héros détouré sur un décor sans lui, nommé `__backdrop` : l'un ne va pas sans l'autre.
assert.ok(baseCatalog.cards.some((card) => card.fullBackdropImage?.endsWith("__full__backdrop.webp")));
const wrongBackdrop = structuredClone(rawCatalog);
wrongBackdrop.cards.find((card) => card.id === "mythic-card-pull").fullBackdropImage = "/static/img/cards/astral-genesis/legendary/mythic_card_pull__backdrop.webp";
assert.throws(() => prepareVersionedCatalog(wrongBackdrop), /full backdrop image must be its full image suffixed with __backdrop/);
const backdropWithoutCutout = structuredClone(rawCatalog);
delete backdropWithoutCutout.cards.find((card) => card.id === "mythic-card-pull").fullCutoutImage;
assert.throws(() => prepareVersionedCatalog(backdropWithoutCutout), /full backdrop image needs a full cutout image/);
const directory = await mkdtemp(join(tmpdir(), "sokkog-cards-full-art-"));
const database = new CardsDatabase(join(directory, "cards.sqlite"));
t.after(async () => {