Add destination cards, starting with Le Cœur du Nuage Cosmique for the Primordial Nebula
A destination card is a rare that unlocks an expedition destination: it never joins a team (no tags, profile or equipment) and always shows as a full-art card. The catalog checks that it is rare and names an existing destination, and that no two cards unlock the same one. Le Cœur du Nuage Cosmique is the first one: a new destination at the heart of the cosmic dust cloud, where a new sun may be about to form, with its landscape and its card in the Primordial Nebula packs. Full-art names at large size now keep clear of the rarity symbol. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
250e0633cf
commit
89eee7ce2a
18 changed files with 113 additions and 21 deletions
|
|
@ -1442,6 +1442,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "cosmic-cloud-heart",
|
||||
"collectionId": "primordial-nebula",
|
||||
"name": "Le Cœur du Nuage Cosmique",
|
||||
"description": "Au cœur du nuage, des morceaux d'îles tournent autour d'une lumière qui grandit. Les Veilleurs y voient peut-être un nouveau soleil en train de naître.",
|
||||
"image": "/static/img/cards/primordial-nebula/rare/cosmic_cloud_heart.webp",
|
||||
"fullImage": "/static/img/cards/primordial-nebula/rare/cosmic_cloud_heart__full.webp",
|
||||
"kind": "destination",
|
||||
"destinationId": "cosmic-cloud-heart"
|
||||
},
|
||||
{
|
||||
"id": "dragon-constellation",
|
||||
"collectionId": "primordial-nebula",
|
||||
|
|
@ -4416,6 +4426,15 @@
|
|||
],
|
||||
"promotional": false
|
||||
},
|
||||
{
|
||||
"id": "cosmic-cloud-heart-standard",
|
||||
"cardId": "cosmic-cloud-heart",
|
||||
"rarity": "rare",
|
||||
"finishIds": [
|
||||
"standard"
|
||||
],
|
||||
"promotional": false
|
||||
},
|
||||
{
|
||||
"id": "dragon-constellation-standard",
|
||||
"cardId": "dragon-constellation",
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 289 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 650 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 99 KiB |
|
|
@ -109,6 +109,11 @@ function RaritySymbol({ rarity, label }) {
|
|||
</span>;
|
||||
}
|
||||
|
||||
// Carte de destination : toujours en pleine illustration (son paysage remplit la carte), quelle que soit sa finition.
|
||||
function destinationVisual(card, visual) {
|
||||
return card?.kind === "destination" ? { ...visual, layout: "full-art" } : visual;
|
||||
}
|
||||
|
||||
function resolveFinishVisual(edition, catalog) {
|
||||
const finishes = (edition.finishIds || [])
|
||||
.map((finishId) => catalog?.finishes.find((finish) => finish.id === finishId))
|
||||
|
|
@ -225,7 +230,7 @@ export function NebulaCard({ catalog, entry, quantity = 0, size = "lg", faceUp =
|
|||
const cardSize = ["sm", "md", "lg"].includes(size) ? size : "lg";
|
||||
const rarity = entry.edition?.rarity || "common";
|
||||
const finish = entry.edition?.finishIds?.join(" ") || "standard";
|
||||
const visual = resolveFinishVisual(entry.edition, catalog);
|
||||
const visual = destinationVisual(entry.card, resolveFinishVisual(entry.edition, catalog));
|
||||
const openingVisual = resolveOpeningVisual(rarity, entry.card.id, entry.card.collectionId, catalog, visual);
|
||||
// Les particules n'existent que pendant l'ouverture : une carte face visible n'en déclare aucune.
|
||||
const displayedParticlePreset = faceUp ? null : openingVisual.particlePreset;
|
||||
|
|
@ -358,8 +363,8 @@ export function NebulaCard({ catalog, entry, quantity = 0, size = "lg", faceUp =
|
|||
}
|
||||
const content = <div className="nebula-card-tilt-surface"><CardFace entry={entry} quantity={quantity} visual={visual} size={cardSize} /></div>;
|
||||
return onSelect
|
||||
? <button ref={cardRef} className="nebula-card nebula-card-select" data-card-size={cardSize} data-card-layout={visual.layout} data-rarity={rarity} data-finish={finish} {...visualAttributes} type="button" onClick={onSelect} aria-label={selectLabel || `Voir ${entry.card.name}`} aria-pressed={selected}>{content}</button>
|
||||
: <article ref={cardRef} className="nebula-card" data-card-size={cardSize} data-card-layout={visual.layout} data-rarity={rarity} data-finish={finish} {...visualAttributes}>{content}</article>;
|
||||
? <button ref={cardRef} className="nebula-card nebula-card-select" data-card-size={cardSize} data-card-layout={visual.layout} data-card-kind={entry.card.kind} data-rarity={rarity} data-finish={finish} {...visualAttributes} type="button" onClick={onSelect} aria-label={selectLabel || `Voir ${entry.card.name}`} aria-pressed={selected}>{content}</button>
|
||||
: <article ref={cardRef} className="nebula-card" data-card-size={cardSize} data-card-layout={visual.layout} data-card-kind={entry.card.kind} data-rarity={rarity} data-finish={finish} {...visualAttributes}>{content}</article>;
|
||||
}
|
||||
|
||||
export { RaritySymbol };
|
||||
|
|
|
|||
|
|
@ -327,6 +327,7 @@ button.nebula-card { cursor: pointer; }
|
|||
.nebula-card-face[data-card-layout="full-art"] .nebula-card-art { position: absolute; inset: 0; margin: 0; border: 0; border-radius: 0; }
|
||||
.nebula-card-face[data-card-layout="full-art"] h3 { position: absolute; right: 0; bottom: 0; left: 0; height: auto; min-height: 0; padding: var(--space-8) var(--space-8) var(--space-3); background: linear-gradient(to top, rgba(5, 7, 17, 0.82), rgba(5, 7, 17, 0.46) 55%, transparent); }
|
||||
.nebula-card[data-card-size="md"] .nebula-card-face[data-card-layout="full-art"] h3 { padding: var(--space-5) var(--space-5) var(--space-2); }
|
||||
.nebula-card[data-card-size="lg"] .nebula-card-face[data-card-layout="full-art"] h3 { padding-inline: 3.5rem; } // Le symbole de rareté occupe le coin bas droit : le nom, centré, garde la même marge des deux côtés.
|
||||
.nebula-card-face[data-card-layout="full-art"] h3 > span { background: linear-gradient(180deg, #fffdf0 0%, #ffedb0 38%, #d9ab4a 50%, #fff4c9 62%, #eec766 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; letter-spacing: 0.02em; text-align: center; text-shadow: none; filter: drop-shadow(0 -1px 0 rgba(5, 7, 17, 0.9)) drop-shadow(0 1px 0 rgba(90, 60, 10, 0.9)) drop-shadow(0 2px 4px rgba(5, 7, 17, 0.9)); }
|
||||
.nebula-card-rarity-symbol { position: absolute; right: 10px; bottom: 9px; z-index: 5; display: grid; place-items: center; width: 28px; height: 28px; color: var(--card-rarity); }
|
||||
.nebula-card[data-card-size="sm"] .nebula-card-rarity-symbol { right: 8px; bottom: 7px; width: 23px; height: 23px; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue