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:
parent
ae23adfdd9
commit
21827a252b
38 changed files with 939 additions and 76 deletions
|
|
@ -24,12 +24,23 @@ function Requirements({ catalog, option, content }) {
|
|||
</div>;
|
||||
}
|
||||
|
||||
function Preview({ catalog, preview, content }) {
|
||||
function Preview({ catalog, preview, content, hours }) {
|
||||
const powers = (preview.powers || []).map((power) => <span key={power} className="nds-badge" data-variant="gold">{content.powers[power]}</span>);
|
||||
const travel = preview.travelHours != null && preview.travelHours !== hours && <p className="nebula-form-help">{fillTemplate(content.travelTime, { hours: formatDecimal(preview.travelHours) })}</p>;
|
||||
const expected = <p className="nebula-expedition-expected">{fillTemplate(content.expected, { eclats: formatEclats(preview.expected.eclats), stardust: formatEclats(preview.expected.stardust), pack: formatEclats(preview.expected.packChancePct) })}</p>;
|
||||
// Boussole folle : ni exigences ni résultat avant le retour.
|
||||
if (preview.hiddenRequirements) return <div className="nebula-expedition-preview" aria-live="polite">
|
||||
<div className="nebula-expedition-rewards">{powers}</div>
|
||||
<p className="nds-inline-notice" data-variant="warning">{content.hiddenRequirements}</p>
|
||||
{travel}
|
||||
{expected}
|
||||
</div>;
|
||||
return <div className="nebula-expedition-preview" aria-live="polite">
|
||||
<div className="nebula-expedition-rewards">
|
||||
<span className="nds-badge" data-variant={TIER_VARIANTS[preview.tier]}>{content.tiers[preview.tier]}</span>
|
||||
<span className="nds-badge" data-variant="neutral">{fillTemplate(content.score, { score: formatEclats(preview.scorePct) })}</span>
|
||||
{synergyLabels(preview, catalog, content).map((label) => <span key={label} className="nds-badge" data-variant="success">{label}</span>)}
|
||||
{powers}
|
||||
{preview.limitedByStars && <span className="nds-badge" data-variant="warning">{fillTemplate(content.limitedByStars, { stars: preview.limitedByStars })}</span>}
|
||||
</div>
|
||||
<ul className="nebula-expedition-checks">{preview.requirements.map((requirement) => <li key={requirement.stat} data-met={requirement.ratioPct >= 100 || undefined}>
|
||||
|
|
@ -38,7 +49,8 @@ function Preview({ catalog, preview, content }) {
|
|||
{preview.conditionMet != null && <p className="nds-inline-notice" data-variant={preview.conditionMet ? "success" : "warning"}>{preview.conditionMet ? content.conditionMet : content.conditionUnmet}</p>}
|
||||
{preview.dangers.map((danger) => <p key={danger.id} className="nds-inline-notice" data-variant={danger.countered ? "success" : "warning"}>{fillTemplate(danger.countered ? content.dangerCountered : content.dangerActive, { label: danger.label })}</p>)}
|
||||
{preview.durationFactor < 1 && <p className="nds-inline-notice" data-variant="warning">{content.durationMalus}</p>}
|
||||
<p className="nebula-expedition-expected">{fillTemplate(content.expected, { eclats: formatEclats(preview.expected.eclats), stardust: formatEclats(preview.expected.stardust), pack: formatEclats(preview.expected.packChancePct) })}</p>
|
||||
{travel}
|
||||
{expected}
|
||||
</div>;
|
||||
}
|
||||
|
||||
|
|
@ -148,7 +160,7 @@ export function ExpeditionPlanner({ catalog, view, mode = "solo", content, busy,
|
|||
{!complete && <p className="nebula-form-help">{fillTemplate(content.previewEmpty, { count: slotCount })}</p>}
|
||||
{group && <p className="nebula-form-help">{content.groupPreviewNote}</p>}
|
||||
{shownPreview?.error && <p className="nds-inline-notice" data-variant="warning" role="status">{shownPreview.error}</p>}
|
||||
{shownPreview?.value && <Preview catalog={catalog} preview={shownPreview.value} content={content} />}
|
||||
{shownPreview?.value && <Preview catalog={catalog} preview={shownPreview.value} content={content} hours={hours} />}
|
||||
<div className="nds-toolbar">
|
||||
<button className="nds-button" data-variant="primary" type="button" disabled={busy || !complete} onClick={async () => { if (await onStart(body)) setSlots(slots.map(() => null)); }}>{group ? content.groupStart : content.start}</button>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue