refacto: compendium rebuild avec dossier Tarot

Les 78 cartes sont rangées dans un dossier 'Tarot' dans le
compendium système. Le script generate-tarot-packs crée le
dossier puis y place chaque carte.
This commit is contained in:
2026-07-11 00:04:27 +02:00
parent 948100d443
commit c48ce71632
85 changed files with 105 additions and 80 deletions
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000056
MANIFEST-000060
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,10 @@
{
"_id": "folder_tarot",
"_key": "!folders!folder_tarot",
"name": "Tarot",
"type": "Item",
"sorting": "a",
"sort": 0,
"color": "#8b4513",
"flags": {}
}
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Le Bateleur",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 100000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "La Papesse",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 200000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "L'Impératrice",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 300000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "L'Empereur",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 400000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Le Pape",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 500000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "L'Amoureux",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 600000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Le Chariot",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 700000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "La Justice",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 800000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "L'Hermite",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 900000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "La Roue de Fortune",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 1000000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "La Force",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 1100000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Le Pendu",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 1200000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "L'Arcane sans Nom",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 1300000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "La Tempérance",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 1400000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Le Diable",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 1500000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "La Maison Dieu",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 1600000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "L'Étoile",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 1700000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "La Lune",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 1800000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Le Soleil",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 1900000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Le Jugement",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 2000000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Le Monde",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 2100000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Le Mat",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 2200000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "As de Bâton",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 2300000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "2 de Bâton",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 2400000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "3 de Bâton",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 2500000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "4 de Bâton",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 2600000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "5 de Bâton",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 2700000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "6 de Bâton",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 2800000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "7 de Bâton",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 2900000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "8 de Bâton",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 3000000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "9 de Bâton",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 3100000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "10 de Bâton",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 3200000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "As de Coupe",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 3300000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "2 de Coupe",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 3400000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "3 de Coupe",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 3500000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "4 de Coupe",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 3600000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "5 de Coupe",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 3700000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "6 de Coupe",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 3800000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "7 de Coupe",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 3900000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "8 de Coupe",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 4000000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "9 de Coupe",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 4100000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "10 de Coupe",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 4200000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "As de Denier",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 4300000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "2 de Denier",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 4400000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "3 de Denier",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 4500000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "4 de Denier",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 4600000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "5 de Denier",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 4700000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "6 de Denier",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 4800000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "7 de Denier",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 4900000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "8 de Denier",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 5000000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "9 de Denier",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 5100000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "10 de Denier",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 5200000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "As d'Épée",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 5300000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "2 d'Épée",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 5400000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "3 d'Épée",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 5500000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "4 d'Épée",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 5600000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "5 d'Épée",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 5700000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "6 d'Épée",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 5800000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "7 d'Épée",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 5900000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "8 d'Épée",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 6000000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "9 d'Épée",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 6100000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "10 d'Épée",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 6200000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Valet de Bâton",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 6300000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Cavalier de Bâton",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 6400000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Reine de Bâton",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 6500000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Roi de Bâton",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 6600000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Valet de Coupe",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 6700000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Cavalier de Coupe",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 6800000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Reine de Coupe",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 6900000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Roi de Coupe",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 7000000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Valet de Denier",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 7100000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Cavalier de Denier",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 7200000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Reine de Denier",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 7300000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Roi de Denier",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 7400000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Valet d'Épée",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 7500000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Cavalier d'Épée",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 7600000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Reine d'Épée",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 7700000,
"flags": {},
"system": {
+1 -1
View File
@@ -4,7 +4,7 @@
"name": "Roi d'Épée",
"type": "tarot",
"img": "icons/svg/treasure.svg",
"folder": null,
"folder": "folder_tarot",
"sort": 7800000,
"flags": {},
"system": {
+16 -1
View File
@@ -27,6 +27,21 @@ async function main() {
await fs.unlink(path.join(SRC_DIR, f))
}
// Créer le dossier Tarot dans le compendium
const tarotFolderId = "folder_tarot"
const folderDoc = {
_id: tarotFolderId,
_key: `!folders!${tarotFolderId}`,
name: "Tarot",
type: "Item",
sorting: "a",
sort: 0,
color: "#8b4513",
flags: {},
}
const folderPath = path.join(SRC_DIR, `${tarotFolderId}.json`)
await fs.writeFile(folderPath, JSON.stringify(folderDoc, null, 2), "utf-8")
// Write each card as a single JSON document file
for (let i = 0; i < cards.length; i++) {
const card = cards[i]
@@ -37,7 +52,7 @@ async function main() {
name: card.name,
type: "tarot",
img: "icons/svg/treasure.svg",
folder: null,
folder: tarotFolderId,
sort: (i + 1) * 100000,
flags: {},
system: {