Add the Sokko TCG collectible card mini-game
Add the server-backed card game: Discord login, recharging pack openings, album, trades, gifts, stardust shop, campaign codes and its administration, stored in SQLite and disabled in production until configured. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
243465720f
commit
5ce35cd7ba
193 changed files with 12159 additions and 28 deletions
11
website/src/features/cards/admin/catalogSettings.js
Normal file
11
website/src/features/cards/admin/catalogSettings.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// Rôle : lit les réglages d'ouverture mythique publiés dans le catalogue pour l'administration.
|
||||
|
||||
export function openingSettingFor(catalog, scope, targetId) {
|
||||
const setting = catalog.mythicOpeningSettings?.find((item) => item.scope === scope && item.targetId === targetId);
|
||||
return { particleShapeId: setting?.particleShapeId || null, particlePaletteId: setting?.particlePaletteId || null };
|
||||
}
|
||||
|
||||
export function withoutOpeningSetting(catalog, scope, targetId) {
|
||||
return { ...catalog, mythicOpeningSettings: (catalog.mythicOpeningSettings || []).filter((item) => item.scope !== scope || item.targetId !== targetId) };
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue