Commit graph

369 commits

Author SHA1 Message Date
fd47514d81 Freeze pack rates in a campaign when it is created
A gifted pack using the pack's own rates was drawn with whatever rates
were in force when the player opened it. Campaigns now copy those rates
at creation (packRates), every pack of the code draws with them, and the
reveal shows them. Older campaigns keep following the live rates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 16:50:51 +01:00
26984bb6c0 Split asset budgets into transfer and storage and gate them in check:full
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m42s
Validate and deploy Sokko G / deploy (push) Successful in 15s
The new dragon illustrations pushed the cold home page to 1,754,467 bytes,
over its 1.75 MB budget. The home dragon is re-encoded at quality 88 and
the sidebar dragon resized to 268 px, twice its displayed width, at
quality 92, with SSIM above 0.994: the home page is back to about 1.71 MB.

The 25 MB cap measured the images stored in the repository, which are
not downloaded on each visit. The profile now separates transfer budgets
(home, Aniimo, CSS gzip at 100 kB pending the CSS split) from storage,
which reports images per folder and caps each file at 1 MB. npm run
test:assets applies them in check:full on the production build, so a
breach blocks delivery.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 13:03:46 +01:00
2f02c761a8 Read the expedition settings once per TCG state
The settings getter reread and remerged the SQL row on every access, seven
times per getState. getState now builds the state inside a settings
snapshot scoped to that synchronous build and released even on error, so
an administrator's change still shows in the next state. An empty account
now prepares 42 statements instead of 48.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 12:27:52 +01:00
2ba3e10005 Record the first delivery with the health-checked deploy script
The script that ships node_modules and waits for /api/health was installed
on the server on 2026-11-21, then reinstalled at 632cc06 after its first
run misread HOST and PORT and aborted its rollback. That delivery succeeded,
and the doc now says to install a changed script from origin/main while CI
validates, since the deploy job calls the copy already installed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 12:14:11 +01:00
632cc06a16 Read the health address and roll back correctly in the deploy script
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m48s
Validate and deploy Sokko G / deploy (push) Successful in 15s
Run 324 polled 127.0.0.1:5173 instead of the service's HOST and PORT:
each env file overwrote the value found in the previous one, even when it
did not define the variable, so the check failed against a healthy server.
The rollback then stopped at once, because its local previous_commit
redeclared the read-only global of the same name.

A file now keeps the value of the previous one unless it defines the
variable, and the rollback uses its own name. A test runs the lookup on
real env files and another forbids locals that shadow read-only globals;
both fail on the previous script. The fix applies once the script is
reinstalled on the server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 11:44:54 +01:00
2831f01195 Let the cards E2E server raise the development login limit
Some checks failed
Validate and deploy Sokko G / validate (push) Successful in 22m38s
Validate and deploy Sokko G / deploy (push) Failing after 43s
Development logins were capped at a hard-coded 10 per minute per address.
The cards E2E suite logs in 21 times, and with the test added in 067a4a8
the expedition test's login became the eleventh within one minute: it got
"Trop de tentatives", never reached the admin guild tab and timed out in
CI. The limit is now the devAuthRateLimit option, still 10 by default, and
the E2E server raises it as it already did for apiRateLimit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 10:13:17 +01:00
067a4a8fd6 Fix the audit's concurrency, stale state and delivery findings
Some checks failed
Validate and deploy Sokko G / validate (push) Failing after 19m40s
Validate and deploy Sokko G / deploy (push) Has been skipped
Share uploads now reserve their slot, bytes and per-IP count before the
disk check, so simultaneous uploads can no longer exceed the limits.
Writes to a share's metadata run one after another, and a revocation can
no longer be undone by a pending read count.

The TCG page ignores a state reload that started before or during a
mutation, the last mutation wins, and returning to the page triggers a
single reload. The card cache confirms writes only once the IndexedDB
transaction completes and shows only the current player's copy. The
administration panel loads on demand, which shrinks the TCG chunk from
311.6 to 191.8 kB.

A new /api/health route answers 503 when the cards or shares API failed
to start. The deploy script ships the commit's production dependencies
with the build, waits up to 30 s for a healthy server instead of trusting
systemctl is-active, and restores node_modules on rollback. Both Forgejo
workflows check the route on the public site. The updated script applies
once reinstalled on the server.

Unused helpers, the ignored join role and duplicate button selectors are
removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:38:20 +01:00
0571a935d6 Refresh the sidebar and home dragon illustrations
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m32s
Validate and deploy Sokko G / deploy (push) Successful in 12s
Both illustrations keep their previous size, scaled and cropped without
stretching, and the sidebar dragon stays flush with the sidebar border.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 14:32:10 +01:00
3dcc0b6f12 Cap collection destinations in the daily expedition draw and always give a Watchers' starter destination
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m35s
Validate and deploy Sokko G / deploy (push) Successful in 13s
The daily draw now proposes at most day.maxCollectionDestinations (default 2)
destinations linked to a collection, unless the player lacks other
destinations to fill the day. The starter destination card is now granted to
any player without a Watchers' Logbooks destination, even if they already own
collection destination cards from packs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:44:30 +01:00
e3749d60b6 Redraw the dragon's horns on the site illustrations and the bundled little dragon
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m31s
Validate and deploy Sokko G / deploy (push) Successful in 12s
The home, sidebar, toolbox and game guide illustrations and the Longue Nuit
bundled little dragon card now use the corrected horn artwork. The game guide
scene also shows the dragon's fourth leg. Each image keeps its previous size,
cropped rather than stretched, and the sidebar dragon stays flush with the
sidebar border.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 20:34:38 +01:00
c73a118ffb Let players who join a group set up their card and say when they are ready
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m30s
Validate and deploy Sokko G / deploy (push) Successful in 13s
Joining a group froze the card's stats at once and locked its
equipment, so a joining player could not equip anything. Joining now
uses the same card frame as the preparation: card, equipment and
"Améliorer la carte". Everything stays editable after joining, and the
group counts the card as it is, until the player clicks "Prêt". That
freezes the card's stats. "Modifier ma préparation" reopens it.

The creator sees each member as "Prêt" or "En préparation", with a
ready count, and can still leave at any time. A player who is not
ready leaves with their card as it is at departure. A migration marks
existing members as ready, since their stats were already frozen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 19:24:23 +01:00
dac0bdd6a7 Redraw the dragon's horns on every card and page illustration
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m14s
Validate and deploy Sokko G / deploy (push) Successful in 14s
The mascot dragon's horns were inconsistent across illustrations. The cards of
the Genèse Astrale, Longue Nuit, Nébuleuse Primordiale, Carnets des Veilleurs
and Arcade des Rêves collections, their full-art and cutout versions, the
login art and the Guilde des Veilleurs banner now use the corrected artwork.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 16:26:39 +01:00
c1ef7b6ce7 Show the expedition's state on the Guild tile button
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m12s
Validate and deploy Sokko G / deploy (push) Successful in 12s
The Expeditions tile now reads "En cours" while an expedition is on its
way, "Récupérer le butin" once one has returned, and "Préparer"
otherwise. The tile also refreshes at the next return time, so the
button switches to the loot without reloading the page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 14:11:40 +01:00
2c10df0370 Reveal the Stardust pack in the shop, keep the campaign expiry row inside its card and stabilise the Aniimo e2e tests
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m9s
Validate and deploy Sokko G / deploy (push) Successful in 12s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 13:35:22 +01:00
99724cb6ba Add campaign filter and duplication, pack activity, and gift pack rate fallback
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m9s
Validate and deploy Sokko G / deploy (push) Successful in 17s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 12:48:15 +01:00
048d9a0c91 Let closed-collection cards awaken with duplicates from any collection
A closed collection no longer sells packs, so its legendaries could
barely awaken. Its cards now accept substitute duplicates of their
rarity from any collection, at the same 6/2/1 count. The Watchers'
Logbooks never count as closed. The awakening sheet and picker say so,
and a daily tip and the balance guide explain the rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 12:29:43 +01:00
ad9f7a2213 Close the Scintillants epic in the Beads history
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m12s
Validate and deploy Sokko G / deploy (push) Successful in 13s
The mythic variations are left to the admin page, and the idea of a Scintillants destination is dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 12:08:42 +01:00
1fa8d4d80d Add the Scintillants: four new shop legendaries and a golden Stardust Dragon
Some checks failed
Validate and deploy Sokko G / deploy (push) Blocked by required conditions
Validate and deploy Sokko G / validate (push) Has been cancelled
The shop collection (Poussières d'étoiles) now has its own lore: the Scintillants, ordinary animals turned into living treasures by the gold dust left from the scales the Dragon du Néant Étoilé lost at the beginning of the world. The shop pack now features five legendaries instead of one: the Stardust Dragon, the Écureuil du Grenier d'Or, the Tortue au Coffre d'Étoiles, the Panthère aux Pépites d'Or and the Carpe Koï des Courants d'Or (new personnage:koi tag).

The Stardust Dragon keeps its scene but is redrawn gold and ivory with straight crystal horns, so it no longer looks like the mascot. Its text now tells where it comes from, and it becomes a Fortune specialist like the other legendaries. Each Scintillant has a 45 % specialty and a 10 % weakness. The collection has no commons: the shop pack never draws them, and the Scintillants find synergy partners through theme:poussiere and theme:tresor commons of other collections.

The shop pack test now checks that the configured share goes to the whole collection, split evenly between its legendaries, instead of to the Dragon alone. Lore, style guide, balance guide and the card-by-card illustration prompts are documented.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 12:05:32 +01:00
2e1d10086a Show each daily tip's part of the game as a coloured badge
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m10s
Validate and deploy Sokko G / deploy (push) Successful in 12s
A tip now carries its part of the game (section) and an optional short topic. The part shows as a badge with one colour per part: Expéditions green, Paquets violet, Collection grey, Échanges et dons gold, Carte du jour orange. The topic sits beside it as the title, so "Expéditions · Améliorer ses cartes" becomes [Expéditions] Améliorer ses cartes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 11:04:39 +01:00
99a438ff1d Show the shop shortfall above the buy button so buttons stay aligned
"Il vous manque … poussières." sat under the button and pushed it below the buttons of the other items in the row. The shortfall and the pending opening notice now come before the button, which stays at the bottom of every card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 11:00:33 +01:00
e8ec657193 Add a daily tip to the Sokko TCG home that explains hidden mechanics
39 short tips cover packs, collection, trades, the daily card and Expeditions (getting cards, succeeding, groups, loot, improving cards, bag items). Each one has a topic that starts with its part of the game, such as "Expéditions · Réussir". Every figure comes from the current settings through tipValues(), so a tip follows an admin change. Expedition tips only show while Expeditions are open. The tip of the day is the same for everyone, "Astuce suivante" shows the next ones, and the card sits under the key figures so the home still fits a 1280 × 720 screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 10:56:01 +01:00
17bec5d690 Lead the upgrade tip with the advice, then name the next awakening
"Améliorez de préférence avec les Éclats : vos doublons pourront servir à l'Éveil de votre carte (prochain Éveil : Puissance 85)."

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 10:37:38 +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
0533a8f766 Let players pick the duplicates that awaken a card, shown as cards
The awakening with duplicates of the collection used to take them automatically, without showing them. It now opens a picker like the Atelier: the needed slots at the top, the usable duplicates below as illustrated cards with their free copies, and nothing is used before "Éveiller". The server lists the candidates and checks the chosen copies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 10:05:36 +01:00
055f8cf17b Keep an open menu above the other blocks of its panel
Every direct child of a panel sits at the same stacking level, so the blocks after an open dropdown painted over its list: the bulk recycling text and buttons hid the rarity options. The block holding an open select or filter menu now rises above its neighbours, in every panel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 09:54:56 +01:00
8b76570e7a Fix pack openings failing when they draw a destination card already owned
The server builds the card service without a random source. Pack draws fall back to crypto randomness, but replacing a destination card the player already owns called the missing source and threw "this.random is not a function". The service now defaults to crypto randomness itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 09:54:56 +01:00
01683ab2b8 Put the bulk recycling rarity menu under its label, above the album
The label and the menu shared one line in the narrow side column, which squeezed the menu down to a single letter, and its open list slid under the album cards. The menu now sits under its label across the whole box, and the side column rises above the album while one of its menus is open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 09:46:40 +01:00
0ecb2cdbc5 Make duplicates awaken cards at Power 70, 85 and 100
Opening packs stays useful once a collection is complete: the level that reaches an awakening tier can no longer be bought with Éclats, a duplicate or field experience. The card awakens without Éclats, with one of its own duplicates (a mythic also takes its legendary version) or with duplicates of its collection and rarity: 6 rares, 2 epics or 1 legendary, numbers that follow the 24/8/3 drop rates so a tier costs about the same packs at every rarity. Tiers and counts are admin settings, and the balance guide records the simulations and the options set aside.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 09:40:41 +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
79fdf2a9a8 Add an Expeditions balance guide gathering the decisions, findings and method for future cards
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m5s
Validate and deploy Sokko G / deploy (push) Successful in 15s
docs/expeditions/equilibrage.md records the design principles chosen for the Expeditions, how the score is computed, why a shortfall costs more than a surplus, the profiles, emblems, constellations, powers and destination rules in place, the method and targets to check a new card or collection, the options tried and dropped with their measurements, and the technical traps met on the way. The agent guide, the lore's card section and the new-card skill point to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 00:02:47 +01:00
734fc79b75 Give six destinations a second affinity theme distinct from their condition
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m15s
Validate and deploy Sokko G / deploy (push) Successful in 13s
Light currents, level isles, dawn shore, great void, pale moon slope and the grand astral hall only granted Affinité for their condition's tag, so one card met both. They now also reward currents, dreams, auroras, passages, the pale moon and treasure, taken from their descriptions, which asks a team for a second well-chosen card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 23:33:21 +01:00
c6eb638b9e Show a destination's affinity themes next to its condition and dangers
The destination panel now lists the themes that grant Affinité, with the score it adds and whether the chosen card carries one. A theme that is also the condition shows once, in the condition line, since a single card then meets both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 23:31:36 +01:00
74021342eb Merge the Expeditions specialists and difficulty rework into main
Some checks failed
Validate and deploy Sokko G / deploy (push) Blocked by required conditions
Validate and deploy Sokko G / validate (push) Has been cancelled
Expertise rewards specialist cards in groups; 3 to 5 star requirements rise, more so for each extra player, so equipment and builds matter at the top. Primordials get distinct weaknesses, emblems that build their specialty and constellations that guide their weakness; commons declare their synergy stat; explicit trades get profile archetypes; equipment, destinations and rewards match their lore. The Talisman, treasure map, spyglass, rations, net, storm lantern and fog bell keep a real trade-off, Adaptation lifts a card's weakest required stat, loot caps and field experience grow with duration, resonances count once per pair, and each score bonus explains itself on hover. Includes Codex's audit of November 18.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 23:22:19 +01:00
45d9180ed1 Explain each score bonus on hover: what triggers it and what it adds
Affinity, each resonance, cohesion, Expertise and the bonus cap now open a tooltip saying what triggered them and how much they add, with the values in force when the result was computed (results store them as bonusPcts; older ones get the explanation without a figure). The departure preview, group cards and return report share the same badges, and cohesion now shows in the report too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 23:20:31 +01:00
9802db816e Show each score bonus as its own badge in the departure preview and on group cards
Bonus labels such as "Affinité · Rêves" and "Expertise · Fortune +8 %" were joined with the same dot that separates their parts, so two bonuses read as one. They now use the separate badges of the return report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 23:13:57 +01:00
fb951e4510 Balance the remaining powers per real hour, scale loot caps and field experience with duration, and count each resonance once
- The spyglass trades a quarter more travel for more cards and one more at the cap, rations are neutral per hour, the shooting-star net scales with the chosen hours and costs Fortune per place, the storm lantern adds 10 % of travel instead of a fixed hour, and the fog bell's group bonus sits outside the synergy cap.
- Card and object caps grow with each 6 hours chosen, and field experience with each 2 hours, so long expeditions are no longer held back by the caps of short ones.
- Each resonance needs its own pair of cards, "Étoiles sœurs" becomes "Thème partagé", and the bonuses say when the cap absorbs part of them.
- Every stat is a secondary stat for two vocations, and the simulator's reflected builds can pick Adaptation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 23:03:42 +01:00
5a9cc42073 Give explicit trades their own profiles, fix equipment that contradicts its text, and make destinations ask for complementary cards
- Guardians, guides, cartographers, pilots, gardeners and lucky charms get a few shared profile archetypes instead of their collection's, and a catalog profile stays at 50 % or less per stat.
- The Dream Arcade legendaries' emblems now build their two strengths without a penalty, like the Nebula's, and the Mystery block names the Dragon.
- Crystal hearts, the save crystal, the reunion lantern, the yule log, the camp roast, the storage box and the shooting star now do what their text says.
- Six destinations no longer let the same tag meet the condition and parry a danger, the Aurora sky asks for Bravoure first and the feast for Fortune, and two Logbook rewards match their destination.
- The tag conventions are documented, and the hedgehog's sparks fall from the Dragon's scales, since it has no wings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:52:15 +01:00
90d659b558 Add Codex's dated audit of the Expeditions lore and balance, with its card matrix
The review of November 18 checks the coherence of profiles, equipment, tags, synergies and powers, and the matrix lists every card's effective profile, starting stats and tags at that date. They describe that state and are kept as written; the follow-up lives in Beads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:47:11 +01:00
9b0190c6eb Carry the Adaptation power on the Nebula pearl, the celestial gift and the adventurer's potion
Three commons whose story already gives each bearer what they lack now carry Adaptation instead of stats, one per collection: the Primordial Nebula, the Long Night and the Dream Arcade. The preview and group cards show the stat it raises next to the power's name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:38:18 +01:00
feeab57711 Keep risk alive with the Talisman and the treasure map, and add an Adaptation power for weak stats
- The Talisman turns a near miss into a Réussite only from a 60 % score, still without Triomphe, so a weak team can fail and the Mad compass keeps its risk.
- The treasure map brings its rare object back only from a successful expedition.
- Adaptation, a power for a future common, adds 4 points to its card's weakest stat among those the destination requires, chosen for each destination.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:27:27 +01:00
ea5f5c9a51 Give the Primordials distinct weaknesses, emblems that build their specialty and constellations that guide their weakness
- Each Primordial has a 45 % specialty and its own 10 % weakness; its emblematic common raises its two strengths with the synergy on its specialty, and its constellation gives Orientation plus its weakness, without penalties.
- Commons declare the stat their synergy raises when stats tie and for power commons, so the bonus no longer falls on Bravoure by field order.
- Expertise is measured against the solo requirement, so it stays within reach when the group raises each place's requirement.
- Missing lore links become playable: the Dragon, Panda and Capybara own their emblems, Turtles and the Reindeer share an identity, and the Bat, the light-current Otters and the Aurora Wolf are recognised at their destinations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:23:43 +01:00
91ca8e39ef Reward specialists with Expertise and make the highest difficulties need equipment
A card is an expert of a required stat when it covers on its own twice the requirement of one place; each stat held by a different expert adds 8 % to the score, outside the synergy cap. Requirements rise for 3 to 5 stars and by 10 % per extra player, so a capped card without equipment rarely clears 5 stars while a reflected build does. A mythic now spreads as many level points as its legendary. Migration 21 drops stored requirements so the new defaults apply; the simulator builds teams with vocations and commons, and the balance test checks these targets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:16:06 +01:00
fb8488de7f Upgrade sharp to 0.35.5 and eslint to 10.15, and deny the @parcel/watcher install script
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m4s
Validate and deploy Sokko G / deploy (push) Successful in 14s
sharp 0.34.5 bundles libvips, libheif and librsvg versions with known vulnerabilities (high severity);
0.35.5 fixes them and no longer ships an install script. eslint 10.15 pulls a minimatch fixed for the
globparts denial of service. @parcel/watcher, pulled by sass, already uses a prebuilt binary, so its
node-gyp rebuild script is denied. npm audit now reports no vulnerabilities and npm install no warnings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 20:07:32 +01:00
ddd1b271dd Wait for the token editor to take focus before typing a child formula in the calculator e2e test
Adding a child calculation swaps the expression input for the token editor, which takes focus on the next frame.
On a slow CI runner the formula could be typed before that swap and get lost, leaving no result ("-" instead of 60).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 19:49:50 +01:00
fc43444995 Give each player their own daily card and send only the visible crop of its illustration
Some checks failed
Validate and deploy Sokko G / validate (push) Successful in 22m10s
Validate and deploy Sokko G / deploy (push) Failing after 25s
- Each player draws their own daily card and zoom point on their first visit, so a shared answer no longer helps; the migration keeps past games with their day's shared card.
- The server crops the illustration with sharp to the part visible at the current zoom; the full image only arrives once the game is over.
- The admin overview shows the day's winners and players instead of a single card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 16:47:52 +01:00
41325a3a32 Merge the Sokko TCG Expeditions into main
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m21s
Validate and deploy Sokko G / deploy (push) Successful in 19s
Expeditions: daily destinations unlocked by their destination cards, solo and
group expeditions with their journey and in-place loot, card levels and stats
distribution, commons as equipment with synergies and powers, the Watcher's
bag, the workshop and the engraving workshop, Discord alerts, and the Grand
Salon Astral destination. The feature ships closed: the administration opens it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 15:55:41 +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
84b0d69b1f Keep the expedition view in sync with other players and only send alerts players still want
- The expeditions page rereads its view on its own: every 10 seconds while a
  group is shown, every 20 seconds otherwise, on tab return and at the next
  recruitment deadline; late responses no longer overwrite a newer action. A
  failed load offers "Réessayer" and a failed refresh keeps the last view.
- The periodic alert pass first departs groups whose recruitment ended, so
  their return is announced even if nobody visits the site.
- Queued alerts are checked again at sending time: a player who opted out or
  alerts switched off by the administration drop the message for good.
- The engraving confirmation sticks to the bottom of its window, the workshop
  lists commons by spare count, the guild expeditions card shows the Great
  Void, and stale help texts and comments are fixed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 15:24:39 +01:00