Let players choose how their cards spend level points with vocations or free points, and sell the Parchemin d'oubli

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-16 23:00:40 +01:00
parent 18bcf435b5
commit 7d331d1a3f
24 changed files with 473 additions and 60 deletions

View file

@ -392,6 +392,12 @@ const MIGRATIONS = [
created_at INTEGER NOT NULL,
PRIMARY KEY (player_id, day)
) STRICT;
`,
// Plan de progression d'une carte : comment ses points de niveau se répartissent (collection, vocation ou libre) et,
// en libre, les points placés par le joueur. NULL : jamais choisi (le premier choix est gratuit).
`
ALTER TABLE card_progress ADD COLUMN plan TEXT CHECK (plan IS NULL OR plan IN ('collection', 'leader', 'guardian', 'seeker', 'navigator', 'free'));
ALTER TABLE card_progress ADD COLUMN allocation_json TEXT CHECK (allocation_json IS NULL OR json_valid(allocation_json));
`
];