sokko-g/services/cards/admin-seed.js
Shinuwa 22b397ebfa Document Sokko G's architecture and folders, and move JavaScript file headers to JSDoc @file blocks
Add ARCHITECTURE.md (layers, flows, folder map, glossary), CONTRIBUTING.md
(setup and step-by-step recipes) and a README in each main folder, with an
index of docs/. Convert the 511 JavaScript headers from "// Rôle :" lines to
JSDoc @file blocks, define a three-level header template in website/AGENTS.md
and check the header in tests/file-headers.test.mjs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 09:42:13 +01:00

24 lines
1.3 KiB
JavaScript

/**
* @file Contenu de départ des tables gérées depuis l'administration, inséré par la migration 2.
*
* Listes figées : elles décrivent l'état initial de la base ; la suite se gère depuis l'administration.
*/
// Paquets ouvrables au départ.
export const INITIAL_COLLECTION_STATES = Object.freeze([
Object.freeze({ collectionId: "primordial-nebula", active: true }),
Object.freeze({ collectionId: "astral-genesis", active: true })
]);
// Taux de tirage de départ, égaux aux poids recommandés des raretés (catalog.json).
const LAUNCH_WEIGHTS = Object.freeze({ common: 64, rare: 24, epic: 8, legendary: 3, mythic: 1 });
export const INITIAL_DROP_RATES = Object.freeze(["primordial-nebula", "astral-genesis"].map((collectionId) => Object.freeze({ collectionId, rarityWeights: LAUNCH_WEIGHTS })));
// Recharge de départ : une ouverture toutes les heures, réserve plafonnée à 5.
export const INITIAL_RECHARGE_SETTING = Object.freeze({ intervalMs: 60 * 60 * 1000, maxOpenings: 5 });
// Boutique de départ : poussière d'étoiles gagnée par doublon recyclé, selon sa rareté, et prix d'une ouverture achetée.
export const INITIAL_SHOP_SETTING = Object.freeze({
stardustValues: Object.freeze({ common: 1, rare: 3, epic: 10, legendary: 40, mythic: 150 }),
openingPrice: 30
});