Replace the rarity hint of the daily card with the theme of its name
Some checks failed
Validate and deploy Sokko G / validate (push) Failing after 20m47s
Validate and deploy Sokko G / deploy (push) Has been skipped

The rarity alone left 71 cards out of 246 and only helped to filter the album; the theme leaves 15 and helps every player. It opens after three wrong guesses and is no longer offered once a guess has found it. Games that had flipped the rarity get their hint back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-24 23:48:50 +01:00
parent ac6ae7df62
commit d5c2900eed
10 changed files with 89 additions and 31 deletions

View file

@ -517,6 +517,11 @@ export const MIGRATIONS = [
`
ALTER TABLE daily_attempts ADD COLUMN hints_json TEXT NOT NULL DEFAULT '[]' CHECK (json_valid(hints_json));
ALTER TABLE daily_attempts ADD COLUMN owned INTEGER CHECK (owned IS NULL OR owned IN (0, 1));
`,
// L'indice « Rareté » laisse la place au thème du nom : il est retiré des parties qui l'avaient retourné, ce qui rend leur indice.
`
UPDATE daily_attempts SET hints_json = (SELECT json_group_array(hint.value) FROM json_each(daily_attempts.hints_json) AS hint WHERE hint.value <> 'rarity')
WHERE EXISTS (SELECT 1 FROM json_each(daily_attempts.hints_json) AS hint WHERE hint.value = 'rarity');
`
];