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

@ -206,12 +206,20 @@ export function validateCardsCatalog(catalog) {
if (!card.description || card.description.length > 200) throw new TypeError(`Card ${card.id} description must contain 1 to 200 characters.`);
if (card.image != null && !CARD_IMAGE_PATTERN.test(card.image)) throw new TypeError(`Card ${card.id} image must use a canonical WebP path.`);
if (card.fullImage != null && !CARD_IMAGE_PATTERN.test(card.fullImage)) throw new TypeError(`Card ${card.id} full image must use a canonical WebP path.`);
// Illustrations à zones vides : même fichier que l'illustration de leur format, suffixé `__cutout`, pour les effets à sous-couche.
for (const [cutoutKey, imageKey, label] of [["cutoutImage", "image", "image"], ["fullCutoutImage", "fullImage", "full image"]]) {
if (card[cutoutKey] != null && (!card[imageKey] || card[cutoutKey] !== card[imageKey].replace(/\.webp$/, "__cutout.webp"))) {
throw new TypeError(`Card ${card.id} ${cutoutKey === "cutoutImage" ? "cutout" : "full cutout"} image must be its ${label} suffixed with __cutout.`);
// Calques de la parallaxe prismatique : héros détouré (`__cutout`) et décor sans le héros (`__backdrop`), nommés d'après
// l'illustration de leur format. Un décor n'a de sens qu'avec le héros détouré qui se pose dessus.
for (const [layerKey, imageKey, label, suffix] of [
["cutoutImage", "image", "cutout image must be its image", "__cutout"],
["fullCutoutImage", "fullImage", "full cutout image must be its full image", "__cutout"],
["backdropImage", "image", "backdrop image must be its image", "__backdrop"],
["fullBackdropImage", "fullImage", "full backdrop image must be its full image", "__backdrop"]
]) {
if (card[layerKey] != null && (!card[imageKey] || card[layerKey] !== card[imageKey].replace(/\.webp$/, `${suffix}.webp`))) {
throw new TypeError(`Card ${card.id} ${label} suffixed with ${suffix}.`);
}
}
if (card.backdropImage != null && card.cutoutImage == null) throw new TypeError(`Card ${card.id} backdrop image needs a cutout image.`);
if (card.fullBackdropImage != null && card.fullCutoutImage == null) throw new TypeError(`Card ${card.id} full backdrop image needs a full cutout image.`);
if (card.kind != null && card.kind !== DESTINATION_CARD_KIND) throw new TypeError(`Card ${card.id} has an unknown kind.`);
if (isDestinationCard(card)) {
if (!DESTINATION_ID_PATTERN.test(card.destinationId ?? "")) throw new TypeError(`Destination card ${card.id} needs a destinationId.`);