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:
Shinuwa 2026-11-15 14:29:05 +01:00
parent 0ef213cf4f
commit 8bb1d53d70
46 changed files with 4752 additions and 213 deletions

View file

@ -15,12 +15,12 @@
"preview": "vite preview",
"lists:index": "node scripts/generate-list-indexes.mjs",
"lint": "eslint .",
"lint:cards": "eslint server.mjs vite.config.js services/http.js playwright.cards.config.js scripts/backup-nebula-cards.mjs scripts/start-cards-e2e-server.mjs services/cards tests/nebula-cards.test.mjs tests/nebula-cards-api.test.mjs tests/nebula-cards-daily.test.mjs tests/server-robustness.test.mjs e2e/nebula-cards.spec.js e2e/style-layouts.spec.js website/src/features/cards website/src/components/Shell.jsx website/src/main.jsx website/src/router/RouteContent.jsx",
"lint:cards": "eslint server.mjs vite.config.js services/http.js playwright.cards.config.js scripts/backup-nebula-cards.mjs scripts/start-cards-e2e-server.mjs scripts/simulate-expeditions.mjs services/cards tests/nebula-cards.test.mjs tests/nebula-cards-api.test.mjs tests/nebula-cards-daily.test.mjs tests/nebula-cards-expeditions.test.mjs tests/nebula-cards-expedition-balance.test.mjs tests/nebula-cards-expedition-service.test.mjs tests/server-robustness.test.mjs e2e/nebula-cards.spec.js e2e/style-layouts.spec.js website/src/features/cards website/src/components/Shell.jsx website/src/main.jsx website/src/router/RouteContent.jsx",
"check": "node --check server.mjs && node --check vite.config.js && npm run lint && npm run lists:index && npm test && npm run build",
"check:cards": "node --check server.mjs && node --check vite.config.js && npm run lint:cards && npm run test:cards && npm run test:e2e:cards",
"check:full": "npm run check && E2E_PORT=4181 npm run test:e2e && npm run test:e2e:production && npm run test:e2e:cards",
"test": "node --test",
"test:cards": "node --test tests/nebula-cards.test.mjs tests/nebula-cards-api.test.mjs tests/nebula-cards-daily.test.mjs tests/server-robustness.test.mjs && node --test --test-name-pattern=\"site content json is complete\" tests/data-validation.test.mjs",
"test:cards": "node --test tests/nebula-cards.test.mjs tests/nebula-cards-api.test.mjs tests/nebula-cards-daily.test.mjs tests/nebula-cards-expeditions.test.mjs tests/nebula-cards-expedition-balance.test.mjs tests/nebula-cards-expedition-service.test.mjs tests/server-robustness.test.mjs && node --test --test-name-pattern=\"site content json is complete\" tests/data-validation.test.mjs",
"test:e2e": "playwright test",
"test:e2e:production": "npm run build && playwright test --config playwright.production.config.js",
"test:e2e:cards": "playwright test --config playwright.cards.config.js",