Add solo Expeditions, the second Guilde des Veilleurs quest of Sokko TCG
- Every catalog card carries expedition tags and every collection a stat profile, validated at load; twelve destinations live server-side so hidden ones stay secret. - Pure rules compute card power, per-slot requirements, roles, dangers, the long-trip malus, the score (one more star never raises it) and loot proportional to the chosen duration. - A simulator script and a balance test guard the design thresholds; agent docs and a new-card skill explain how to tag new cards. - Migration 8 adds Éclats d'étoile, expedition settings stored as one validated JSON, daily destinations, expeditions, members and slots, and rebuilds gift_packs so a pack can come from an expedition. - Players launch a solo expedition from the Guild, see an exact preview, and claim their loot when it returns; the card sheet shows cards away on an expedition. - Administration › Guilde tunes every value with server-side bounds, toggles destinations and cancels running expeditions; expeditions stay closed until an administrator opens them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0ef213cf4f
commit
8bb1d53d70
46 changed files with 4752 additions and 213 deletions
79
website/src/styles/_nebula-expeditions.scss
Normal file
79
website/src/styles/_nebula-expeditions.scss
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
// Rôle : met en page les Expéditions de Sokko TCG (expéditions du joueur, destinations du jour, équipe par rôle, aperçu).
|
||||
// Les composants restent ceux du design system (nds-panel, nds-card, nds-button, nds-badge, nds-inline-notice) ; ce fichier ne règle que la disposition.
|
||||
|
||||
.nebula-expeditions { display: grid; gap: var(--space-4); min-width: 0; }
|
||||
.nebula-expeditions .nds-section-heading.nebula-section-heading { margin-bottom: 0; }
|
||||
.nebula-expeditions > .nebula-form-help { margin: 0; }
|
||||
.nebula-expeditions > .nds-inline-notice { margin: 0; }
|
||||
.nebula-expeditions h3, .nebula-expeditions h4 { margin: 0; }
|
||||
|
||||
// Expéditions du joueur : une carte par expédition, couverture de la destination, équipe et butin.
|
||||
.nebula-expedition-active { display: grid; gap: var(--space-3); }
|
||||
.nebula-expedition-reports { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--space-4); }
|
||||
.nds-card.nebula-expedition-report { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); align-items: start; padding: var(--space-4); }
|
||||
.nds-card-cover.nebula-expedition-report-cover { width: 88px; overflow: hidden; aspect-ratio: 1; border-radius: var(--radius-md); }
|
||||
.nebula-expedition-report-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
||||
.nds-card-body.nebula-expedition-report-body { display: grid; gap: var(--space-2); justify-items: start; min-width: 0; padding: 0; }
|
||||
.nebula-expedition-report-body p { margin: 0; }
|
||||
.nebula-expedition-report-status { color: var(--color-text-primary); font-weight: 700; }
|
||||
.nebula-expedition-report-body .nds-card-actions { padding: 0; }
|
||||
.nebula-expedition-report-team { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
|
||||
.nebula-expedition-report-team li { display: grid; gap: var(--space-1); justify-items: center; color: var(--color-text-secondary); font-size: var(--font-size-xs); }
|
||||
.nebula-expedition-rewards { display: flex; flex-wrap: wrap; gap: var(--space-2); }
|
||||
|
||||
// Préparation : quatre étapes empilées.
|
||||
.nebula-expedition-plan-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); }
|
||||
.nebula-expedition-planner { display: grid; gap: var(--space-4); }
|
||||
.nds-panel.nebula-expedition-step { display: grid; gap: var(--space-3); padding: var(--space-5); }
|
||||
.nebula-expedition-step > .nebula-form-help, .nebula-expedition-step > .nds-inline-notice { margin: 0; }
|
||||
|
||||
.nebula-expedition-destinations { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--space-3); }
|
||||
.nebula-expedition-destination { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-3); align-items: start; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-surface-alt); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color 160ms var(--ease-standard), background 160ms var(--ease-standard); }
|
||||
.nebula-expedition-destination:hover { background: var(--color-bg-hover); }
|
||||
.nebula-expedition-destination[aria-pressed="true"] { border-color: rgba(246, 196, 83, 0.54); background: rgba(246, 196, 83, 0.12); }
|
||||
.nebula-expedition-destination img { width: 72px; aspect-ratio: 1; border-radius: var(--radius-sm); object-fit: cover; }
|
||||
.nebula-expedition-destination-copy { display: grid; gap: var(--space-1); min-width: 0; }
|
||||
.nebula-expedition-destination-copy > span:not(.nebula-expedition-destination-roles) { color: var(--color-text-secondary); font-size: var(--font-size-sm); text-wrap: pretty; }
|
||||
.nebula-expedition-destination-roles { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-1); }
|
||||
|
||||
.nebula-expedition-choices { display: flex; flex-wrap: wrap; gap: var(--space-3); }
|
||||
.nebula-expedition-requirements { display: grid; gap: var(--space-2); }
|
||||
.nebula-expedition-requirements ul, .nebula-expedition-checks { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
|
||||
.nebula-expedition-requirements li, .nebula-expedition-checks li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--color-bg-surface-alt); }
|
||||
.nebula-expedition-requirements li > span { display: inline-flex; align-items: center; gap: var(--space-2); }
|
||||
.nebula-expedition-requirements p { margin: 0; color: var(--color-text-secondary); font-size: var(--font-size-sm); }
|
||||
.nebula-expedition-checks li[data-met] strong { color: var(--color-success); }
|
||||
|
||||
// Équipe : une place par rôle, puis les cartes jouables, triées pour la place choisie.
|
||||
.nebula-expedition-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-3); }
|
||||
.nebula-expedition-slot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
|
||||
.nebula-expedition-slot[data-active] { border-color: rgba(246, 196, 83, 0.54); }
|
||||
.nebula-expedition-slot > span { flex: 1 1 120px; min-width: 0; color: var(--color-text-secondary); font-size: var(--font-size-sm); }
|
||||
.nebula-expedition-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: var(--space-4) var(--space-3); max-height: 640px; margin: 0; padding: var(--space-1); overflow-y: auto; list-style: none; }
|
||||
.nebula-expedition-cards li { display: grid; gap: var(--space-1); justify-items: center; text-align: center; }
|
||||
.nebula-expedition-cards li[data-busy] { opacity: 0.55; }
|
||||
.nebula-expedition-card-power { color: var(--color-text-primary); font-size: var(--font-size-xs); font-weight: 700; }
|
||||
.nebula-expedition-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1) var(--space-2); color: var(--color-text-muted); font-size: var(--font-size-xs); }
|
||||
|
||||
.nebula-expedition-preview { display: grid; gap: var(--space-3); }
|
||||
.nebula-expedition-preview .nds-inline-notice { margin: 0; }
|
||||
.nebula-expedition-expected { margin: 0; color: var(--color-text-primary); }
|
||||
|
||||
// Administration › Guilde : un panneau par groupe de réglages, des champs alignés en grille.
|
||||
.nebula-admin-expeditions { display: grid; gap: var(--space-4); }
|
||||
.nebula-admin-expeditions > h2 { margin: var(--space-4) 0 0; }
|
||||
.nebula-admin-expedition-group > .nebula-form-help { margin: 0; }
|
||||
.nebula-admin-expedition-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--space-3) var(--space-4); }
|
||||
.nebula-admin-expedition-field { display: grid; gap: var(--space-1); align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
|
||||
.nebula-admin-expedition-field > span, .nebula-admin-expedition-field > legend { color: var(--color-text-secondary); font-size: var(--font-size-sm); }
|
||||
.nebula-admin-expedition-field > legend { margin-bottom: var(--space-1); padding: 0; }
|
||||
.nebula-admin-expedition-field > .nds-button { justify-self: start; }
|
||||
.nebula-admin-expedition-items { display: flex; flex-wrap: wrap; gap: var(--space-2); }
|
||||
.nebula-admin-expedition-items label { display: grid; flex: 1 1 72px; gap: 2px; min-width: 64px; color: var(--color-text-muted); font-size: var(--font-size-xs); }
|
||||
.nebula-admin-expedition-destinations { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
|
||||
.nebula-admin-expedition-destinations .nds-list-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-3); }
|
||||
.nebula-admin-expedition-destinations .nds-list-row > strong { display: inline-flex; flex: 1 1 200px; align-items: center; gap: var(--space-2); }
|
||||
.nebula-admin-expedition-destinations .nds-list-row > span { flex: 1 1 200px; color: var(--color-text-secondary); font-size: var(--font-size-sm); }
|
||||
.nebula-admin-expedition-destinations label { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-text-secondary); font-size: var(--font-size-sm); }
|
||||
.nebula-admin-expedition-destinations input { width: 80px; }
|
||||
.nebula-admin-expedition-destinations .nds-list-row > .nds-button { flex: 0 0 auto; width: auto; }
|
||||
|
|
@ -14,6 +14,7 @@
|
|||
@use "diablo4";
|
||||
@use "aniimo";
|
||||
@use "nebula-cards";
|
||||
@use "nebula-expeditions";
|
||||
@use "games/checklist";
|
||||
@use "design-system/attributes";
|
||||
@use "responsive";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue