Commit graph

10 commits

Author SHA1 Message Date
88c7bf8317 Group Sokko TCG's interface files by Guild quest and card rendering
The 48 files of the Daily Card, Expeditions, Daily Team and race, Broken
Mirror and card rendering move to daily/, expeditions/, team/, mirror/ and
rendering/ under website/src/features/cards, with every relative import
rewritten. The root keeps the page, server calls, cache and the player
sections outside the Guild. The cards README, the quest recipe and the
current docs follow the new paths; dated audits and plans keep theirs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:35:18 +01:00
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
62042c4c36 Compare the subject and theme of each daily guess, let players choose their hints and find cards by related words
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m58s
Validate and deploy Sokko G / deploy (push) Successful in 17s
Collection and rarity hints only helped players who owned the daily card. Each guess now shows the common part of its subject and whether the theme of its name matches. A wrong guess earns one hint of the player's choice, the same list for everyone so that nothing reveals the ownership: album, rarity, collection, damaged page or name shape. Hidden words never leave the server, and the ownership is the one of the draw.

The guess list also finds a card by a related word, and the album no longer searches the description of unknown cards. Principles and data: docs/carte-du-jour.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 23:09:08 +01:00
5197867dd4 Shorten the upgrade tip and move the recycling reminder into the confirmation
The upgrade tip now reads "Palier d'Éveil à Puissance 85. Améliorez de préférence avec les Éclats : vos doublons y serviront.", which no longer contradicts the duplicate button next to it. The recycling reminder leaves the narrow box for the confirmation, as a warning notice naming the rarities that also awaken cards; it shows only when the selection goes past commons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 10:33:20 +01:00
d863964a5d Advise players to level with Éclats and keep duplicates for awakenings
Duplicates now matter for awakening tiers, so the upgrade section of a card sheet says so while a tier lies ahead: level up with Éclats and experience, keep duplicates for awakenings. The bulk recycling box reminds that rare, epic and legendary duplicates also awaken cards once the player goes past commons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 10:28:39 +01:00
83ac709907 Reword bulk recycling and awakening texts, and list only the recycled rarities
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m11s
Validate and deploy Sokko G / deploy (push) Successful in 13s
The confirmation said "rareté Commun ou plus commune": it now names the recycled rarities ("Vos doublons communs, rares et épiques deviennent …") and its value list keeps only those rarities. The box no longer reads "0 doublon … +0 poussière", and the awakening texts say "6 doublons rares" instead of "doublons de rareté Rare". The history no longer shows "−undefined Éclats" for an awakening with duplicates of the collection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 10:20:42 +01:00
c7f951920e Recycle duplicates in bulk up to a chosen rarity, never mythics
The collection page asks how far the bulk recycling goes (Common by default) and its preview follows that choice, so duplicates kept for later uses are not lost with the rest. Mythic duplicates are only recycled one by one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 09:26:25 +01:00
98ffe6562c Add a loot legend, a foldable Watcher's bag and a mythic halo, and move card sheet and power texts to site.json
- The destinations step opens with a legend of the four loots and what the
  green and red arrows mean.
- The Watcher's bag folds into a strip of item art and counts; the choice is
  kept by the browser.
- Mythic cards wear a slowly turning prismatic ring across the expedition
  screens; it is visual only.
- The card sheet and the stats distribution read their texts from
  cards.cardSheet, and power descriptions and their figures from
  cards.expeditions.powerText and powerDetails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 15:44:44 +01:00
4d05d812c5 Split the Guild administration into tabs and sell Éclats and openings by quantity in the shop
The Guild administration now has a tab per quest. The expedition settings sit behind a status band (open or close, today's activity) and four themed tabs, with units inside the fields, the default value shown, and one sticky apply bar that lists every change before confirming.

The Pont des Veilleurs leaves the expedition page and becomes the « Éclats d’étoile » shop item, priced from Administration › Boutique. Openings and Éclats are bought by quantity: a number field capped by the stardust the player actually has, and a full-width button that shows the total cost. Stardust and Éclats get their own SVG icons, aligned with the text around them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 15:39:45 +01:00
5ce35cd7ba 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>
2026-11-05 17:47:35 +01:00