Add the Carnets des Veilleurs, the expedition-only Sokko TCG collection with power commons

- A new watchers-logbooks collection of category expedition never comes from packs, the shop or codes, and administrators cannot open it as a pack.
- Its six commons carry powers instead of stats (Longue-vue, Provisions, Carte au trésor, Talisman, Boussole folle, Filet à étoiles filantes); a card holds one power and each counts once per team.
- Powers change travel time, loot, score or tier, hide requirements, or catch a logbook card; each destination lists the logbook cards it can bring back.
- A workshop turns a plan and three duplicate commons into a power common.
- The fifteen cards ship without images with ready ChatGPT prompts; a card only drops or gets crafted once illustrated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-15 17:40:51 +01:00
parent ae23adfdd9
commit 21827a252b
38 changed files with 939 additions and 76 deletions

View file

@ -27,7 +27,7 @@ function collectionStats(catalog, lookup, collection) {
}
function CollectionBadges({ collection }) {
return <div className="nebula-admin-collection-badges"><span className="nds-badge" data-variant={collection.packCategory === "permanent" ? "neutral" : "gold"}>{{ event: "Événement", shop: "Boutique" }[collection.packCategory] || "Permanente"}</span><span className="nds-badge" data-variant={collection.active ? "success" : "neutral"}>{collection.active ? "Ouverte" : "Fermée"}</span></div>;
return <div className="nebula-admin-collection-badges"><span className="nds-badge" data-variant={collection.packCategory === "permanent" ? "neutral" : "gold"}>{{ event: "Événement", shop: "Boutique", expedition: "Expéditions" }[collection.packCategory] || "Permanente"}</span><span className="nds-badge" data-variant={collection.active ? "success" : "neutral"}>{collection.active ? "Ouverte" : "Fermée"}</span></div>;
}
function CollectionsIndex({ catalog, lookup, dashboard, busy, runMutation, refreshDashboard }) {
@ -181,7 +181,7 @@ function CollectionPage({ catalog, lookup, collection, dashboard, mutateCatalog,
<article className="nds-card nebula-admin-collection-card">
<div className="nebula-admin-collection-back"><CollectionCardBack collection={collection} /></div>
<div className="nebula-admin-collection-copy">
<div className="nebula-admin-collection-head"><CollectionBadges collection={collection} /><PackAvailability collection={collection} busy={busy} mutateCatalog={mutateCatalog} /></div>
<div className="nebula-admin-collection-head"><CollectionBadges collection={collection} />{collection.packCategory !== "expedition" && <PackAvailability collection={collection} busy={busy} mutateCatalog={mutateCatalog} />}</div>
<h3 className="nebula-admin-collection-title">{collection.name}</h3>
<span className="nebula-admin-system-name">Nom système · <strong>{collection.systemName}</strong> · <code>{collection.id}</code></span>
<p>{collection.description}</p>
@ -190,15 +190,17 @@ function CollectionPage({ catalog, lookup, collection, dashboard, mutateCatalog,
</article>
{/* Le paquet de la boutique puise dans les autres collections : rappel de ses sources et part de ses propres cartes. */}
{collection.packCategory === "shop" && <ShopPackContent catalog={catalog} collection={collection} dashboard={dashboard} busy={busy} runMutation={runMutation} refreshDashboard={refreshDashboard} />}
{/* Collection des Expéditions : pas de paquet ; ses cartes arrivent par le butin, le Filet et l'atelier, une fois illustrées. */}
{collection.packCategory === "expedition" && <p className="nds-inline-notice" data-variant="info">Cette collection ne s’obtient qu’en expédition : butin des destinations, Filet à étoiles filantes et atelier. Une carte n’y entre qu’une fois son illustration ajoutée au catalogue ({cards.filter((card) => card.image).length} sur {cards.length} illustrées).</p>}
{/* Taux de tirage et ouverture mythique côte à côte quand la place le permet, empilés sinon. */}
<div className="nebula-admin-collection-settings">
{collection.packCategory !== "expedition" && <div className="nebula-admin-collection-settings">
<section className="nds-panel nebula-admin-drop-rates" aria-labelledby="nebula-admin-drop-rates-title">
<h3 id="nebula-admin-drop-rates-title">Taux de tirage</h3>
<p className="nebula-form-help">Chaque carte d’un paquet est tirée indépendamment : d’abord la rareté selon ces poids, puis une variation au hasard parmi celles tirables de cette rareté. Les nouveaux taux s’appliquent immédiatement.</p>
<DropRatesEditor key={JSON.stringify(collection.dropWeights || null)} catalog={catalog} collection={collection} busy={busy} mutateCatalog={mutateCatalog} />
</section>
<CollectionOpeningPanel catalog={catalog} lookup={lookup} collection={collection} mutateCatalog={mutateCatalog} busy={busy} />
</div>
</div>}
<MythicVersions catalog={catalog} lookup={lookup} collection={collection} dashboard={dashboard} mutateCatalog={mutateCatalog} busy={busy} expandedCardId={expandedCardId} onToggle={(cardId) => (cardId ? configure(cardId) : setExpandedCardId(null))} />
<CollectionCards catalog={catalog} lookup={lookup} collection={collection} dashboard={dashboard} onConfigure={configure} />
</>;

View file

@ -146,7 +146,7 @@ function PackEditor({ catalog, lookup, pack, index, onChange, onRemove }) {
<Tooltip as="button" className="nds-icon-button" content="Retirer" data-size="sm" data-variant="danger" type="button" aria-label={`Retirer ${label}`} onClick={onRemove}><span className="ui-icon ui-icon-trash" aria-hidden="true" /></Tooltip>
</header>
<div className="nebula-form">
<SelectDropdown className="nebula-admin-reward-collection" label="Collection" value={pack.collectionId} options={catalog.collections.filter((entry) => entry.packCategory !== "shop").map((entry) => ({ value: entry.id, label: `${entry.name}${entry.active ? "" : " (fermée)"}` }))} onChange={(collectionId) => update({ collectionId, guaranteeEditionId: "" })} />
<SelectDropdown className="nebula-admin-reward-collection" label="Collection" value={pack.collectionId} options={catalog.collections.filter((entry) => entry.packCategory !== "shop" && entry.packCategory !== "expedition").map((entry) => ({ value: entry.id, label: `${entry.name}${entry.active ? "" : " (fermée)"}` }))} onChange={(collectionId) => update({ collectionId, guaranteeEditionId: "" })} />
<div className="nebula-admin-option">
<span className="nebula-admin-option-label">Taux de tirage</span>
<ChoiceGroup label={`Taux de tirage — ${label}`} value={pack.customRates ? "custom" : "pack"} options={[["pack", "Ceux du paquet"], ["custom", "Personnalisés"]]} onChange={(value) => update({ customRates: value === "custom" })} />

View file

@ -78,6 +78,23 @@ export const EXPEDITION_SETTING_GROUPS = [
{ path: "synergy.sistersCount", label: "Cartes d’un même thème pour les Étoiles sœurs" }
]
},
{
id: "powers",
title: "Pouvoirs et Carnets des Veilleurs",
help: "Avantage et contrepartie de chaque pouvoir des communes des Carnets (chaque pouvoir compte une fois par équipe), et chance de rapporter une carte des Carnets.",
fields: [
{ path: "powers.longsightPackPct", label: "Longue-vue : chance de paquet en plus (%)" },
{ path: "powers.longsightExtraHours", label: "Longue-vue : heures de trajet en plus" },
{ path: "powers.rationsTimePct", label: "Provisions : temps de trajet en moins (%)" },
{ path: "powers.rationsLootPct", label: "Provisions : butin en moins (%)" },
{ path: "powers.treasureMapScorePct", label: "Carte au trésor : score en moins (%)" },
{ path: "powers.madCompassLootPct", label: "Boussole folle : butin en plus (%)" },
{ path: "powers.starNetCardPct", label: "Filet à étoiles filantes : chance d’une carte des Carnets (%)" },
{ path: "powers.starNetFortune", label: "Filet à étoiles filantes : Fortune en moins (équipe)" },
{ path: "carnets.cardPerHourPermille", label: "Carte des Carnets par heure (‰)" },
{ path: "carnets.maxCards", label: "Cartes des Carnets au plus par expédition" }
]
},
{
id: "items",
title: "Objets",