From f2839c4b54ccabbf66f300b77bb7d2509cc58718 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnier Date: Fri, 10 Jul 2026 23:53:39 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20compendium=20syst=C3=A8me=20avec=2078?= =?UTF-8?q?=20cartes=20de=20tarot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Généré depuis assets/data/tarot.json vers packs-system/hamalron-items/ via tools/generate-tarot-packs.mjs + @foundryvtt/foundryvtt-cli Le resetDeck() importe depuis le compendium si aucun item monde n'existe, ou crée les cartes depuis le fichier JSON en dernier recours. --- .gitignore | 5 +- packs-system/hamalron-items/000054.log | 0 packs-system/hamalron-items/000055.ldb | Bin 0 -> 5036 bytes packs-system/hamalron-items/CURRENT | 1 + packs-system/hamalron-items/MANIFEST-000052 | Bin 0 -> 120 bytes packs_src/hamalron-items/tarot_001.json | 17 +++++ packs_src/hamalron-items/tarot_002.json | 17 +++++ packs_src/hamalron-items/tarot_003.json | 17 +++++ packs_src/hamalron-items/tarot_004.json | 17 +++++ packs_src/hamalron-items/tarot_005.json | 17 +++++ packs_src/hamalron-items/tarot_006.json | 17 +++++ packs_src/hamalron-items/tarot_007.json | 17 +++++ packs_src/hamalron-items/tarot_008.json | 17 +++++ packs_src/hamalron-items/tarot_009.json | 17 +++++ packs_src/hamalron-items/tarot_010.json | 17 +++++ packs_src/hamalron-items/tarot_011.json | 17 +++++ packs_src/hamalron-items/tarot_012.json | 17 +++++ packs_src/hamalron-items/tarot_013.json | 17 +++++ packs_src/hamalron-items/tarot_014.json | 17 +++++ packs_src/hamalron-items/tarot_015.json | 17 +++++ packs_src/hamalron-items/tarot_016.json | 17 +++++ packs_src/hamalron-items/tarot_017.json | 17 +++++ packs_src/hamalron-items/tarot_018.json | 17 +++++ packs_src/hamalron-items/tarot_019.json | 17 +++++ packs_src/hamalron-items/tarot_020.json | 17 +++++ packs_src/hamalron-items/tarot_021.json | 17 +++++ packs_src/hamalron-items/tarot_022.json | 17 +++++ packs_src/hamalron-items/tarot_023.json | 17 +++++ packs_src/hamalron-items/tarot_024.json | 17 +++++ packs_src/hamalron-items/tarot_025.json | 17 +++++ packs_src/hamalron-items/tarot_026.json | 17 +++++ packs_src/hamalron-items/tarot_027.json | 17 +++++ packs_src/hamalron-items/tarot_028.json | 17 +++++ packs_src/hamalron-items/tarot_029.json | 17 +++++ packs_src/hamalron-items/tarot_030.json | 17 +++++ packs_src/hamalron-items/tarot_031.json | 17 +++++ packs_src/hamalron-items/tarot_032.json | 17 +++++ packs_src/hamalron-items/tarot_033.json | 17 +++++ packs_src/hamalron-items/tarot_034.json | 17 +++++ packs_src/hamalron-items/tarot_035.json | 17 +++++ packs_src/hamalron-items/tarot_036.json | 17 +++++ packs_src/hamalron-items/tarot_037.json | 17 +++++ packs_src/hamalron-items/tarot_038.json | 17 +++++ packs_src/hamalron-items/tarot_039.json | 17 +++++ packs_src/hamalron-items/tarot_040.json | 17 +++++ packs_src/hamalron-items/tarot_041.json | 17 +++++ packs_src/hamalron-items/tarot_042.json | 17 +++++ packs_src/hamalron-items/tarot_043.json | 17 +++++ packs_src/hamalron-items/tarot_044.json | 17 +++++ packs_src/hamalron-items/tarot_045.json | 17 +++++ packs_src/hamalron-items/tarot_046.json | 17 +++++ packs_src/hamalron-items/tarot_047.json | 17 +++++ packs_src/hamalron-items/tarot_048.json | 17 +++++ packs_src/hamalron-items/tarot_049.json | 17 +++++ packs_src/hamalron-items/tarot_050.json | 17 +++++ packs_src/hamalron-items/tarot_051.json | 17 +++++ packs_src/hamalron-items/tarot_052.json | 17 +++++ packs_src/hamalron-items/tarot_053.json | 17 +++++ packs_src/hamalron-items/tarot_054.json | 17 +++++ packs_src/hamalron-items/tarot_055.json | 17 +++++ packs_src/hamalron-items/tarot_056.json | 17 +++++ packs_src/hamalron-items/tarot_057.json | 17 +++++ packs_src/hamalron-items/tarot_058.json | 17 +++++ packs_src/hamalron-items/tarot_059.json | 17 +++++ packs_src/hamalron-items/tarot_060.json | 17 +++++ packs_src/hamalron-items/tarot_061.json | 17 +++++ packs_src/hamalron-items/tarot_062.json | 17 +++++ packs_src/hamalron-items/tarot_063.json | 17 +++++ packs_src/hamalron-items/tarot_064.json | 17 +++++ packs_src/hamalron-items/tarot_065.json | 17 +++++ packs_src/hamalron-items/tarot_066.json | 17 +++++ packs_src/hamalron-items/tarot_067.json | 17 +++++ packs_src/hamalron-items/tarot_068.json | 17 +++++ packs_src/hamalron-items/tarot_069.json | 17 +++++ packs_src/hamalron-items/tarot_070.json | 17 +++++ packs_src/hamalron-items/tarot_071.json | 17 +++++ packs_src/hamalron-items/tarot_072.json | 17 +++++ packs_src/hamalron-items/tarot_073.json | 17 +++++ packs_src/hamalron-items/tarot_074.json | 17 +++++ packs_src/hamalron-items/tarot_075.json | 17 +++++ packs_src/hamalron-items/tarot_076.json | 17 +++++ packs_src/hamalron-items/tarot_077.json | 17 +++++ packs_src/hamalron-items/tarot_078.json | 17 +++++ tools/generate-tarot-packs.mjs | 80 ++++++++++++++++++++ tools/packCompendiumsToDist.mjs | 2 +- 85 files changed, 1410 insertions(+), 4 deletions(-) create mode 100644 packs-system/hamalron-items/000054.log create mode 100644 packs-system/hamalron-items/000055.ldb create mode 100644 packs-system/hamalron-items/CURRENT create mode 100644 packs-system/hamalron-items/MANIFEST-000052 create mode 100644 packs_src/hamalron-items/tarot_001.json create mode 100644 packs_src/hamalron-items/tarot_002.json create mode 100644 packs_src/hamalron-items/tarot_003.json create mode 100644 packs_src/hamalron-items/tarot_004.json create mode 100644 packs_src/hamalron-items/tarot_005.json create mode 100644 packs_src/hamalron-items/tarot_006.json create mode 100644 packs_src/hamalron-items/tarot_007.json create mode 100644 packs_src/hamalron-items/tarot_008.json create mode 100644 packs_src/hamalron-items/tarot_009.json create mode 100644 packs_src/hamalron-items/tarot_010.json create mode 100644 packs_src/hamalron-items/tarot_011.json create mode 100644 packs_src/hamalron-items/tarot_012.json create mode 100644 packs_src/hamalron-items/tarot_013.json create mode 100644 packs_src/hamalron-items/tarot_014.json create mode 100644 packs_src/hamalron-items/tarot_015.json create mode 100644 packs_src/hamalron-items/tarot_016.json create mode 100644 packs_src/hamalron-items/tarot_017.json create mode 100644 packs_src/hamalron-items/tarot_018.json create mode 100644 packs_src/hamalron-items/tarot_019.json create mode 100644 packs_src/hamalron-items/tarot_020.json create mode 100644 packs_src/hamalron-items/tarot_021.json create mode 100644 packs_src/hamalron-items/tarot_022.json create mode 100644 packs_src/hamalron-items/tarot_023.json create mode 100644 packs_src/hamalron-items/tarot_024.json create mode 100644 packs_src/hamalron-items/tarot_025.json create mode 100644 packs_src/hamalron-items/tarot_026.json create mode 100644 packs_src/hamalron-items/tarot_027.json create mode 100644 packs_src/hamalron-items/tarot_028.json create mode 100644 packs_src/hamalron-items/tarot_029.json create mode 100644 packs_src/hamalron-items/tarot_030.json create mode 100644 packs_src/hamalron-items/tarot_031.json create mode 100644 packs_src/hamalron-items/tarot_032.json create mode 100644 packs_src/hamalron-items/tarot_033.json create mode 100644 packs_src/hamalron-items/tarot_034.json create mode 100644 packs_src/hamalron-items/tarot_035.json create mode 100644 packs_src/hamalron-items/tarot_036.json create mode 100644 packs_src/hamalron-items/tarot_037.json create mode 100644 packs_src/hamalron-items/tarot_038.json create mode 100644 packs_src/hamalron-items/tarot_039.json create mode 100644 packs_src/hamalron-items/tarot_040.json create mode 100644 packs_src/hamalron-items/tarot_041.json create mode 100644 packs_src/hamalron-items/tarot_042.json create mode 100644 packs_src/hamalron-items/tarot_043.json create mode 100644 packs_src/hamalron-items/tarot_044.json create mode 100644 packs_src/hamalron-items/tarot_045.json create mode 100644 packs_src/hamalron-items/tarot_046.json create mode 100644 packs_src/hamalron-items/tarot_047.json create mode 100644 packs_src/hamalron-items/tarot_048.json create mode 100644 packs_src/hamalron-items/tarot_049.json create mode 100644 packs_src/hamalron-items/tarot_050.json create mode 100644 packs_src/hamalron-items/tarot_051.json create mode 100644 packs_src/hamalron-items/tarot_052.json create mode 100644 packs_src/hamalron-items/tarot_053.json create mode 100644 packs_src/hamalron-items/tarot_054.json create mode 100644 packs_src/hamalron-items/tarot_055.json create mode 100644 packs_src/hamalron-items/tarot_056.json create mode 100644 packs_src/hamalron-items/tarot_057.json create mode 100644 packs_src/hamalron-items/tarot_058.json create mode 100644 packs_src/hamalron-items/tarot_059.json create mode 100644 packs_src/hamalron-items/tarot_060.json create mode 100644 packs_src/hamalron-items/tarot_061.json create mode 100644 packs_src/hamalron-items/tarot_062.json create mode 100644 packs_src/hamalron-items/tarot_063.json create mode 100644 packs_src/hamalron-items/tarot_064.json create mode 100644 packs_src/hamalron-items/tarot_065.json create mode 100644 packs_src/hamalron-items/tarot_066.json create mode 100644 packs_src/hamalron-items/tarot_067.json create mode 100644 packs_src/hamalron-items/tarot_068.json create mode 100644 packs_src/hamalron-items/tarot_069.json create mode 100644 packs_src/hamalron-items/tarot_070.json create mode 100644 packs_src/hamalron-items/tarot_071.json create mode 100644 packs_src/hamalron-items/tarot_072.json create mode 100644 packs_src/hamalron-items/tarot_073.json create mode 100644 packs_src/hamalron-items/tarot_074.json create mode 100644 packs_src/hamalron-items/tarot_075.json create mode 100644 packs_src/hamalron-items/tarot_076.json create mode 100644 packs_src/hamalron-items/tarot_077.json create mode 100644 packs_src/hamalron-items/tarot_078.json create mode 100644 tools/generate-tarot-packs.mjs diff --git a/.gitignore b/.gitignore index a9008c0..af8efd2 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,5 @@ dist/ regles/ .history/ packs-system/**/LOCK -packs-system/**/MANIFEST-* -packs-system/**/LOG* -packs-system/**/CURRENT* \ No newline at end of file +packs-system/**/LOG +packs-system/**/LOG.old \ No newline at end of file diff --git a/packs-system/hamalron-items/000054.log b/packs-system/hamalron-items/000054.log new file mode 100644 index 0000000..e69de29 diff --git a/packs-system/hamalron-items/000055.ldb b/packs-system/hamalron-items/000055.ldb new file mode 100644 index 0000000000000000000000000000000000000000..1238ce000b8e84214d5ff266862c7440eeb36eed GIT binary patch literal 5036 zcmbtY3vd(H72Ug*jI@&FwXC0I8B4;#mTeiWZ2cT;kZ=_2fJ0oOCWHnSdofCE$u8MS78?D-s zb=F#IltfxzeTN|UPo}OB3A{I|t8#yQW;j77M{%2zx_? zAb%yTBmq5;A65e8X;PXi1HCbv*wiD4vK3OEEO;M+wTG{$LFR>7B%-%TZ4%6j*75O3 z?AI`{QhIPDYH|iBY+6R1SwjCJ4SpjoH9ZDBnbLpa@rhs*;&~mZ5lyN!%kd?vYWPy_Bk* zIK!yVFtD%P2ucjr`56l`7bwFls45taH3;TqLbNL-_UFIdPjTW~jPWf-x-Y~+!Qr%- zW_MvC3kY~Ng6CHT;+=d{FemtE!rUI~6-&TgBA#K4XBg?BPzf}jq|#PkcVIGAVJoPr z8P2NY&C3PdpA}S8T%7mtV(~mKt=f-n;}^#e#!H;*t}x zkp=mow2I`z55-{>A+8GL@QqlH5a|)Uc@Zx%H-p`e*la>n%n?3;;4ZU( zn&=jKg(&~=ggY`gTa%n8uCHnFrK8cIN7Zytf z7fbiG7lZV0ngw;pVzb0ri?yrnIF+uV z*c~?Y~z_T1kMF(=(1y1^dNIXNm!3n$gjt8riW(I#xti6d=S(_ z7UKaUVo+$tcNmP2L2dsnvon+z_``LO7fQ1r%p8e;kqAZ)Q!qX-5ljt(7*7uK{xpmq z$_U0qFy0*I;uH+dJ64)uy50%1J8(qxDmUXWVEzrzXn?ExAN`qZrvU;Nf(GpUm|=?A zQm>A`@E4-C;c05C=b-#%wM{WT|BcDdN$qPGU;V9|uW0rB>nTM)%y?filUdDro=6Rz zUxHouvh^Ly3hl+L^}RfU(6%A-%r+e+i*ot(SeadofapCNO zh1giV-zW(rEJk(_abS_7TREyejhyN%*mMsUxESP+Mrl2;Pa@f@m^UPw9?7PIMjauW z4mceWNe3lIuV@L`=7hC`Y+59n78*$#&zv@JKB&!MJWxR}9>g@{FrF;tz3Uh+*a*gp z81g=e>|&W(D5Q3~@|HO2U(9WOfoZU*^!N9gKKLHusQ>Y8d~B!2uwYj5MtU zb_A1BO@LAa>g){0Y|@QiW-wOtG9x{nHe^>IHDLp&WHN^VF`5=38o@=yWk!7&wTNh{ zt7!A~G$TJj5;uZrsKvyo3S~##Tl30}UontWI7nC)!>XMO z(xJ`(<9}pAD4k10I>&F4PW81y<7Y%VBh#eQ;DNgTDV+u)oot7{zH}OH?NT#Hhs?~R za(2(Goa0&LyhM}}SaDzm<&4l?m}k@Dlpx&Vth$K=oY1>LfUNXQVj>IHH+KyyvAUKzwXdMGKV?Y<4-6a%< zIX6Pxt5mua*dY|ZJ6uY{Us^@H2W=S_zJhpU)~81#?t0{zOz0C}axrKH(Tqbq50 zC=d7uN<&Z$S=9Jdrdb1lcdlc+;3pVlum;nTi8TJ{G>i`#2}VIMo*d?rX&67;MliDo z#+$=@JOwkRAthid?Qz2V4y+Fz6^(k$6cdjYhL%kT(orGsZf1m}TwGt>9jw@qf6X$( zM$5xN)6JskLVe^`cjz~{3D0RpBdz?ZD?88sZ8zD>PO9d)8C6p=Ul^?}dBbx>C*A6#>W7h- zYa`vMcwqK@^N1&IyvGUhz{y|(-S~QDwZ0b#xDZ$C=s;G}A|4%+)JYq5gBXzw95ytq z7urK~=$BNwhJ4fwfp86RqZ+nDh(rak3Yx2kBUOQ;ii*RYb{ph^@4#(XkOcQMStYTE zXohApUf`KC<8{aEjCgPt@C=rVMYs#VVqr>spd_|wIW%!9|J*6cd$El8=Ei}6w@-n5 z{jfy(TG|Zk4{<@;62@pgzq#&Qo-`_sN)L`Az2<;p&fX^_(qE+QB(5KB58FYtQf9m+ zOZ{H@kT@6Yb5Zeg!7+Es77R9KCOq9ndz}#KuwV~V-7?M+xgdQ|EC*Y8r2EkVdD}l{ z1=r=RACyQ>jFl3zdKS&<4m6DFM#ZkpY^GL!vV3AtGBikew=Yn%VVAp#HVr)f{1%D) zr|CJs{s=R>I6MccTNQO%CGwcKh;Ci9eVJnCT-ZA#k^d@P3+%I)&(?4)R6n5DH7xHD z?O?a3A5etuqPIMi3-dH)tBr(NrP%hA{6WzIc1wDNqRj&FV!8Y$=`vt?kADF3lRvjk318+WX#y;rKhZFM8_&L!Z5WQMLR2?=8M9Fj8b+ zX4-Y0nJwXfH|L~=!KN>2`Zmd(?&daJRZbDL6sVf_fXcnwUM5r5U=YI)(bsdYwCh2 zypBYJJ+WACDD%kmM#TnvA+yt_&iUKEdm5HghP<2q=f&Zsost8)WfodvaOJp zDMw~q%@3AS$_88~$;)M56uch7D`Elia^*?Q@%&&jrSu{}<>eJujaTz2xx@b} x@+TUM@Ys?j{PapZNFScZgNy|JcJ;9@-mp18w{0Z*|6BjQ`R^x2DpGfR^k1)5E{*^I literal 0 HcmV?d00001 diff --git a/packs-system/hamalron-items/CURRENT b/packs-system/hamalron-items/CURRENT new file mode 100644 index 0000000..f774e85 --- /dev/null +++ b/packs-system/hamalron-items/CURRENT @@ -0,0 +1 @@ +MANIFEST-000052 diff --git a/packs-system/hamalron-items/MANIFEST-000052 b/packs-system/hamalron-items/MANIFEST-000052 new file mode 100644 index 0000000000000000000000000000000000000000..cacd82e218c46a0b3fa236a6554b9f4f56a050d1 GIT binary patch literal 120 zcmWIhx#Ncn10$nUPHI_dPD+xVQ)NkNd1i5{bAE0?Vo_pAe$lIbStSkzMkZ5E24*uB zhBk&Z5AA_mGa%Q3#gCoIe2uzLe Bateleur

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_002.json b/packs_src/hamalron-items/tarot_002.json new file mode 100644 index 0000000..fa78f26 --- /dev/null +++ b/packs_src/hamalron-items/tarot_002.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_002", + "_key": "!items!tarot_002", + "name": "La Papesse", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 200000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "2", + "description": "

La Papesse

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_003.json b/packs_src/hamalron-items/tarot_003.json new file mode 100644 index 0000000..9b42cf7 --- /dev/null +++ b/packs_src/hamalron-items/tarot_003.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_003", + "_key": "!items!tarot_003", + "name": "L'Impératrice", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 300000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "3", + "description": "

L'Impératrice

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_004.json b/packs_src/hamalron-items/tarot_004.json new file mode 100644 index 0000000..919ca10 --- /dev/null +++ b/packs_src/hamalron-items/tarot_004.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_004", + "_key": "!items!tarot_004", + "name": "L'Empereur", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 400000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "4", + "description": "

L'Empereur

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_005.json b/packs_src/hamalron-items/tarot_005.json new file mode 100644 index 0000000..8cd790c --- /dev/null +++ b/packs_src/hamalron-items/tarot_005.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_005", + "_key": "!items!tarot_005", + "name": "Le Pape", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 500000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "5", + "description": "

Le Pape

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_006.json b/packs_src/hamalron-items/tarot_006.json new file mode 100644 index 0000000..7b6bd03 --- /dev/null +++ b/packs_src/hamalron-items/tarot_006.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_006", + "_key": "!items!tarot_006", + "name": "L'Amoureux", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 600000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "6", + "description": "

L'Amoureux

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_007.json b/packs_src/hamalron-items/tarot_007.json new file mode 100644 index 0000000..77bd548 --- /dev/null +++ b/packs_src/hamalron-items/tarot_007.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_007", + "_key": "!items!tarot_007", + "name": "Le Chariot", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 700000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "7", + "description": "

Le Chariot

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_008.json b/packs_src/hamalron-items/tarot_008.json new file mode 100644 index 0000000..8c92768 --- /dev/null +++ b/packs_src/hamalron-items/tarot_008.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_008", + "_key": "!items!tarot_008", + "name": "La Justice", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 800000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "8", + "description": "

La Justice

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_009.json b/packs_src/hamalron-items/tarot_009.json new file mode 100644 index 0000000..0db1ea2 --- /dev/null +++ b/packs_src/hamalron-items/tarot_009.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_009", + "_key": "!items!tarot_009", + "name": "L'Hermite", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 900000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "9", + "description": "

L'Hermite

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_010.json b/packs_src/hamalron-items/tarot_010.json new file mode 100644 index 0000000..8aae186 --- /dev/null +++ b/packs_src/hamalron-items/tarot_010.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_010", + "_key": "!items!tarot_010", + "name": "La Roue de Fortune", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 1000000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "10", + "description": "

La Roue de Fortune

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_011.json b/packs_src/hamalron-items/tarot_011.json new file mode 100644 index 0000000..7e84ad4 --- /dev/null +++ b/packs_src/hamalron-items/tarot_011.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_011", + "_key": "!items!tarot_011", + "name": "La Force", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 1100000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "11", + "description": "

La Force

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_012.json b/packs_src/hamalron-items/tarot_012.json new file mode 100644 index 0000000..c805214 --- /dev/null +++ b/packs_src/hamalron-items/tarot_012.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_012", + "_key": "!items!tarot_012", + "name": "Le Pendu", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 1200000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "12", + "description": "

Le Pendu

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_013.json b/packs_src/hamalron-items/tarot_013.json new file mode 100644 index 0000000..a664b01 --- /dev/null +++ b/packs_src/hamalron-items/tarot_013.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_013", + "_key": "!items!tarot_013", + "name": "L'Arcane sans Nom", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 1300000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "13", + "description": "

L'Arcane sans Nom

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_014.json b/packs_src/hamalron-items/tarot_014.json new file mode 100644 index 0000000..7bd3bd2 --- /dev/null +++ b/packs_src/hamalron-items/tarot_014.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_014", + "_key": "!items!tarot_014", + "name": "La Tempérance", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 1400000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "14", + "description": "

La Tempérance

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_015.json b/packs_src/hamalron-items/tarot_015.json new file mode 100644 index 0000000..4aa11a8 --- /dev/null +++ b/packs_src/hamalron-items/tarot_015.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_015", + "_key": "!items!tarot_015", + "name": "Le Diable", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 1500000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "15", + "description": "

Le Diable

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_016.json b/packs_src/hamalron-items/tarot_016.json new file mode 100644 index 0000000..fdb330a --- /dev/null +++ b/packs_src/hamalron-items/tarot_016.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_016", + "_key": "!items!tarot_016", + "name": "La Maison Dieu", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 1600000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "16", + "description": "

La Maison Dieu

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_017.json b/packs_src/hamalron-items/tarot_017.json new file mode 100644 index 0000000..9ff1246 --- /dev/null +++ b/packs_src/hamalron-items/tarot_017.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_017", + "_key": "!items!tarot_017", + "name": "L'Étoile", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 1700000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "17", + "description": "

L'Étoile

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_018.json b/packs_src/hamalron-items/tarot_018.json new file mode 100644 index 0000000..a52ab59 --- /dev/null +++ b/packs_src/hamalron-items/tarot_018.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_018", + "_key": "!items!tarot_018", + "name": "La Lune", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 1800000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "18", + "description": "

La Lune

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_019.json b/packs_src/hamalron-items/tarot_019.json new file mode 100644 index 0000000..17f95cf --- /dev/null +++ b/packs_src/hamalron-items/tarot_019.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_019", + "_key": "!items!tarot_019", + "name": "Le Soleil", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 1900000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "19", + "description": "

Le Soleil

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_020.json b/packs_src/hamalron-items/tarot_020.json new file mode 100644 index 0000000..db5dfde --- /dev/null +++ b/packs_src/hamalron-items/tarot_020.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_020", + "_key": "!items!tarot_020", + "name": "Le Jugement", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 2000000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "20", + "description": "

Le Jugement

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_021.json b/packs_src/hamalron-items/tarot_021.json new file mode 100644 index 0000000..26df630 --- /dev/null +++ b/packs_src/hamalron-items/tarot_021.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_021", + "_key": "!items!tarot_021", + "name": "Le Monde", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 2100000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "21", + "description": "

Le Monde

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_022.json b/packs_src/hamalron-items/tarot_022.json new file mode 100644 index 0000000..0a7a7e0 --- /dev/null +++ b/packs_src/hamalron-items/tarot_022.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_022", + "_key": "!items!tarot_022", + "name": "Le Mat", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 2200000, + "flags": {}, + "system": { + "type": "atout", + "symbole": "coupe", + "valeur": "lemat", + "description": "

Le Mat

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_023.json b/packs_src/hamalron-items/tarot_023.json new file mode 100644 index 0000000..ea3e5e9 --- /dev/null +++ b/packs_src/hamalron-items/tarot_023.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_023", + "_key": "!items!tarot_023", + "name": "As de Bâton", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 2300000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "baton", + "valeur": "1", + "description": "

As de Bâton

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_024.json b/packs_src/hamalron-items/tarot_024.json new file mode 100644 index 0000000..3ddefd9 --- /dev/null +++ b/packs_src/hamalron-items/tarot_024.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_024", + "_key": "!items!tarot_024", + "name": "2 de Bâton", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 2400000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "baton", + "valeur": "2", + "description": "

2 de Bâton

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_025.json b/packs_src/hamalron-items/tarot_025.json new file mode 100644 index 0000000..1dfa51a --- /dev/null +++ b/packs_src/hamalron-items/tarot_025.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_025", + "_key": "!items!tarot_025", + "name": "3 de Bâton", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 2500000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "baton", + "valeur": "3", + "description": "

3 de Bâton

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_026.json b/packs_src/hamalron-items/tarot_026.json new file mode 100644 index 0000000..f3ab103 --- /dev/null +++ b/packs_src/hamalron-items/tarot_026.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_026", + "_key": "!items!tarot_026", + "name": "4 de Bâton", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 2600000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "baton", + "valeur": "4", + "description": "

4 de Bâton

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_027.json b/packs_src/hamalron-items/tarot_027.json new file mode 100644 index 0000000..6883f05 --- /dev/null +++ b/packs_src/hamalron-items/tarot_027.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_027", + "_key": "!items!tarot_027", + "name": "5 de Bâton", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 2700000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "baton", + "valeur": "5", + "description": "

5 de Bâton

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_028.json b/packs_src/hamalron-items/tarot_028.json new file mode 100644 index 0000000..726791b --- /dev/null +++ b/packs_src/hamalron-items/tarot_028.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_028", + "_key": "!items!tarot_028", + "name": "6 de Bâton", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 2800000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "baton", + "valeur": "6", + "description": "

6 de Bâton

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_029.json b/packs_src/hamalron-items/tarot_029.json new file mode 100644 index 0000000..50e8fb5 --- /dev/null +++ b/packs_src/hamalron-items/tarot_029.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_029", + "_key": "!items!tarot_029", + "name": "7 de Bâton", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 2900000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "baton", + "valeur": "7", + "description": "

7 de Bâton

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_030.json b/packs_src/hamalron-items/tarot_030.json new file mode 100644 index 0000000..40136cc --- /dev/null +++ b/packs_src/hamalron-items/tarot_030.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_030", + "_key": "!items!tarot_030", + "name": "8 de Bâton", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 3000000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "baton", + "valeur": "8", + "description": "

8 de Bâton

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_031.json b/packs_src/hamalron-items/tarot_031.json new file mode 100644 index 0000000..5af8ae5 --- /dev/null +++ b/packs_src/hamalron-items/tarot_031.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_031", + "_key": "!items!tarot_031", + "name": "9 de Bâton", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 3100000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "baton", + "valeur": "9", + "description": "

9 de Bâton

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_032.json b/packs_src/hamalron-items/tarot_032.json new file mode 100644 index 0000000..86cf8b7 --- /dev/null +++ b/packs_src/hamalron-items/tarot_032.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_032", + "_key": "!items!tarot_032", + "name": "10 de Bâton", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 3200000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "baton", + "valeur": "10", + "description": "

10 de Bâton

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_033.json b/packs_src/hamalron-items/tarot_033.json new file mode 100644 index 0000000..13f766d --- /dev/null +++ b/packs_src/hamalron-items/tarot_033.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_033", + "_key": "!items!tarot_033", + "name": "As de Coupe", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 3300000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "coupe", + "valeur": "1", + "description": "

As de Coupe

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_034.json b/packs_src/hamalron-items/tarot_034.json new file mode 100644 index 0000000..8189750 --- /dev/null +++ b/packs_src/hamalron-items/tarot_034.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_034", + "_key": "!items!tarot_034", + "name": "2 de Coupe", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 3400000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "coupe", + "valeur": "2", + "description": "

2 de Coupe

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_035.json b/packs_src/hamalron-items/tarot_035.json new file mode 100644 index 0000000..51beac9 --- /dev/null +++ b/packs_src/hamalron-items/tarot_035.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_035", + "_key": "!items!tarot_035", + "name": "3 de Coupe", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 3500000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "coupe", + "valeur": "3", + "description": "

3 de Coupe

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_036.json b/packs_src/hamalron-items/tarot_036.json new file mode 100644 index 0000000..88cff41 --- /dev/null +++ b/packs_src/hamalron-items/tarot_036.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_036", + "_key": "!items!tarot_036", + "name": "4 de Coupe", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 3600000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "coupe", + "valeur": "4", + "description": "

4 de Coupe

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_037.json b/packs_src/hamalron-items/tarot_037.json new file mode 100644 index 0000000..4e5a5cc --- /dev/null +++ b/packs_src/hamalron-items/tarot_037.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_037", + "_key": "!items!tarot_037", + "name": "5 de Coupe", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 3700000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "coupe", + "valeur": "5", + "description": "

5 de Coupe

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_038.json b/packs_src/hamalron-items/tarot_038.json new file mode 100644 index 0000000..8cf862d --- /dev/null +++ b/packs_src/hamalron-items/tarot_038.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_038", + "_key": "!items!tarot_038", + "name": "6 de Coupe", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 3800000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "coupe", + "valeur": "6", + "description": "

6 de Coupe

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_039.json b/packs_src/hamalron-items/tarot_039.json new file mode 100644 index 0000000..b5f1805 --- /dev/null +++ b/packs_src/hamalron-items/tarot_039.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_039", + "_key": "!items!tarot_039", + "name": "7 de Coupe", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 3900000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "coupe", + "valeur": "7", + "description": "

7 de Coupe

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_040.json b/packs_src/hamalron-items/tarot_040.json new file mode 100644 index 0000000..a7b9aa9 --- /dev/null +++ b/packs_src/hamalron-items/tarot_040.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_040", + "_key": "!items!tarot_040", + "name": "8 de Coupe", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 4000000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "coupe", + "valeur": "8", + "description": "

8 de Coupe

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_041.json b/packs_src/hamalron-items/tarot_041.json new file mode 100644 index 0000000..1663f3e --- /dev/null +++ b/packs_src/hamalron-items/tarot_041.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_041", + "_key": "!items!tarot_041", + "name": "9 de Coupe", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 4100000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "coupe", + "valeur": "9", + "description": "

9 de Coupe

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_042.json b/packs_src/hamalron-items/tarot_042.json new file mode 100644 index 0000000..a58ce36 --- /dev/null +++ b/packs_src/hamalron-items/tarot_042.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_042", + "_key": "!items!tarot_042", + "name": "10 de Coupe", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 4200000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "coupe", + "valeur": "10", + "description": "

10 de Coupe

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_043.json b/packs_src/hamalron-items/tarot_043.json new file mode 100644 index 0000000..7f69d4d --- /dev/null +++ b/packs_src/hamalron-items/tarot_043.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_043", + "_key": "!items!tarot_043", + "name": "As de Denier", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 4300000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "denier", + "valeur": "1", + "description": "

As de Denier

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_044.json b/packs_src/hamalron-items/tarot_044.json new file mode 100644 index 0000000..8297e7b --- /dev/null +++ b/packs_src/hamalron-items/tarot_044.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_044", + "_key": "!items!tarot_044", + "name": "2 de Denier", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 4400000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "denier", + "valeur": "2", + "description": "

2 de Denier

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_045.json b/packs_src/hamalron-items/tarot_045.json new file mode 100644 index 0000000..96e728f --- /dev/null +++ b/packs_src/hamalron-items/tarot_045.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_045", + "_key": "!items!tarot_045", + "name": "3 de Denier", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 4500000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "denier", + "valeur": "3", + "description": "

3 de Denier

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_046.json b/packs_src/hamalron-items/tarot_046.json new file mode 100644 index 0000000..de0d9e9 --- /dev/null +++ b/packs_src/hamalron-items/tarot_046.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_046", + "_key": "!items!tarot_046", + "name": "4 de Denier", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 4600000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "denier", + "valeur": "4", + "description": "

4 de Denier

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_047.json b/packs_src/hamalron-items/tarot_047.json new file mode 100644 index 0000000..795076a --- /dev/null +++ b/packs_src/hamalron-items/tarot_047.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_047", + "_key": "!items!tarot_047", + "name": "5 de Denier", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 4700000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "denier", + "valeur": "5", + "description": "

5 de Denier

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_048.json b/packs_src/hamalron-items/tarot_048.json new file mode 100644 index 0000000..4ebfd5a --- /dev/null +++ b/packs_src/hamalron-items/tarot_048.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_048", + "_key": "!items!tarot_048", + "name": "6 de Denier", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 4800000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "denier", + "valeur": "6", + "description": "

6 de Denier

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_049.json b/packs_src/hamalron-items/tarot_049.json new file mode 100644 index 0000000..b119c3d --- /dev/null +++ b/packs_src/hamalron-items/tarot_049.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_049", + "_key": "!items!tarot_049", + "name": "7 de Denier", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 4900000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "denier", + "valeur": "7", + "description": "

7 de Denier

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_050.json b/packs_src/hamalron-items/tarot_050.json new file mode 100644 index 0000000..8221d5a --- /dev/null +++ b/packs_src/hamalron-items/tarot_050.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_050", + "_key": "!items!tarot_050", + "name": "8 de Denier", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 5000000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "denier", + "valeur": "8", + "description": "

8 de Denier

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_051.json b/packs_src/hamalron-items/tarot_051.json new file mode 100644 index 0000000..0f5c063 --- /dev/null +++ b/packs_src/hamalron-items/tarot_051.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_051", + "_key": "!items!tarot_051", + "name": "9 de Denier", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 5100000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "denier", + "valeur": "9", + "description": "

9 de Denier

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_052.json b/packs_src/hamalron-items/tarot_052.json new file mode 100644 index 0000000..13d5a3c --- /dev/null +++ b/packs_src/hamalron-items/tarot_052.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_052", + "_key": "!items!tarot_052", + "name": "10 de Denier", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 5200000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "denier", + "valeur": "10", + "description": "

10 de Denier

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_053.json b/packs_src/hamalron-items/tarot_053.json new file mode 100644 index 0000000..cba0334 --- /dev/null +++ b/packs_src/hamalron-items/tarot_053.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_053", + "_key": "!items!tarot_053", + "name": "As d'Épée", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 5300000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "epee", + "valeur": "1", + "description": "

As d'Épée

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_054.json b/packs_src/hamalron-items/tarot_054.json new file mode 100644 index 0000000..e58e283 --- /dev/null +++ b/packs_src/hamalron-items/tarot_054.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_054", + "_key": "!items!tarot_054", + "name": "2 d'Épée", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 5400000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "epee", + "valeur": "2", + "description": "

2 d'Épée

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_055.json b/packs_src/hamalron-items/tarot_055.json new file mode 100644 index 0000000..2b5b5e1 --- /dev/null +++ b/packs_src/hamalron-items/tarot_055.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_055", + "_key": "!items!tarot_055", + "name": "3 d'Épée", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 5500000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "epee", + "valeur": "3", + "description": "

3 d'Épée

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_056.json b/packs_src/hamalron-items/tarot_056.json new file mode 100644 index 0000000..3cbf67c --- /dev/null +++ b/packs_src/hamalron-items/tarot_056.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_056", + "_key": "!items!tarot_056", + "name": "4 d'Épée", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 5600000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "epee", + "valeur": "4", + "description": "

4 d'Épée

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_057.json b/packs_src/hamalron-items/tarot_057.json new file mode 100644 index 0000000..977603e --- /dev/null +++ b/packs_src/hamalron-items/tarot_057.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_057", + "_key": "!items!tarot_057", + "name": "5 d'Épée", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 5700000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "epee", + "valeur": "5", + "description": "

5 d'Épée

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_058.json b/packs_src/hamalron-items/tarot_058.json new file mode 100644 index 0000000..8fef109 --- /dev/null +++ b/packs_src/hamalron-items/tarot_058.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_058", + "_key": "!items!tarot_058", + "name": "6 d'Épée", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 5800000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "epee", + "valeur": "6", + "description": "

6 d'Épée

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_059.json b/packs_src/hamalron-items/tarot_059.json new file mode 100644 index 0000000..b0e247f --- /dev/null +++ b/packs_src/hamalron-items/tarot_059.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_059", + "_key": "!items!tarot_059", + "name": "7 d'Épée", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 5900000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "epee", + "valeur": "7", + "description": "

7 d'Épée

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_060.json b/packs_src/hamalron-items/tarot_060.json new file mode 100644 index 0000000..97c196a --- /dev/null +++ b/packs_src/hamalron-items/tarot_060.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_060", + "_key": "!items!tarot_060", + "name": "8 d'Épée", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 6000000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "epee", + "valeur": "8", + "description": "

8 d'Épée

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_061.json b/packs_src/hamalron-items/tarot_061.json new file mode 100644 index 0000000..4f55edd --- /dev/null +++ b/packs_src/hamalron-items/tarot_061.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_061", + "_key": "!items!tarot_061", + "name": "9 d'Épée", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 6100000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "epee", + "valeur": "9", + "description": "

9 d'Épée

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_062.json b/packs_src/hamalron-items/tarot_062.json new file mode 100644 index 0000000..a3322f7 --- /dev/null +++ b/packs_src/hamalron-items/tarot_062.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_062", + "_key": "!items!tarot_062", + "name": "10 d'Épée", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 6200000, + "flags": {}, + "system": { + "type": "numéro", + "symbole": "epee", + "valeur": "10", + "description": "

10 d'Épée

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_063.json b/packs_src/hamalron-items/tarot_063.json new file mode 100644 index 0000000..f356b6c --- /dev/null +++ b/packs_src/hamalron-items/tarot_063.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_063", + "_key": "!items!tarot_063", + "name": "Valet de Bâton", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 6300000, + "flags": {}, + "system": { + "type": "figure", + "symbole": "baton", + "valeur": "valet", + "description": "

Valet de Bâton

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_064.json b/packs_src/hamalron-items/tarot_064.json new file mode 100644 index 0000000..4af82b2 --- /dev/null +++ b/packs_src/hamalron-items/tarot_064.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_064", + "_key": "!items!tarot_064", + "name": "Cavalier de Bâton", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 6400000, + "flags": {}, + "system": { + "type": "figure", + "symbole": "baton", + "valeur": "cavalier", + "description": "

Cavalier de Bâton

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_065.json b/packs_src/hamalron-items/tarot_065.json new file mode 100644 index 0000000..d267d8c --- /dev/null +++ b/packs_src/hamalron-items/tarot_065.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_065", + "_key": "!items!tarot_065", + "name": "Reine de Bâton", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 6500000, + "flags": {}, + "system": { + "type": "figure", + "symbole": "baton", + "valeur": "reine", + "description": "

Reine de Bâton

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_066.json b/packs_src/hamalron-items/tarot_066.json new file mode 100644 index 0000000..8eec031 --- /dev/null +++ b/packs_src/hamalron-items/tarot_066.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_066", + "_key": "!items!tarot_066", + "name": "Roi de Bâton", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 6600000, + "flags": {}, + "system": { + "type": "figure", + "symbole": "baton", + "valeur": "roi", + "description": "

Roi de Bâton

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_067.json b/packs_src/hamalron-items/tarot_067.json new file mode 100644 index 0000000..f5a8cbc --- /dev/null +++ b/packs_src/hamalron-items/tarot_067.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_067", + "_key": "!items!tarot_067", + "name": "Valet de Coupe", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 6700000, + "flags": {}, + "system": { + "type": "figure", + "symbole": "coupe", + "valeur": "valet", + "description": "

Valet de Coupe

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_068.json b/packs_src/hamalron-items/tarot_068.json new file mode 100644 index 0000000..f9c987c --- /dev/null +++ b/packs_src/hamalron-items/tarot_068.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_068", + "_key": "!items!tarot_068", + "name": "Cavalier de Coupe", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 6800000, + "flags": {}, + "system": { + "type": "figure", + "symbole": "coupe", + "valeur": "cavalier", + "description": "

Cavalier de Coupe

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_069.json b/packs_src/hamalron-items/tarot_069.json new file mode 100644 index 0000000..06699e6 --- /dev/null +++ b/packs_src/hamalron-items/tarot_069.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_069", + "_key": "!items!tarot_069", + "name": "Reine de Coupe", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 6900000, + "flags": {}, + "system": { + "type": "figure", + "symbole": "coupe", + "valeur": "reine", + "description": "

Reine de Coupe

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_070.json b/packs_src/hamalron-items/tarot_070.json new file mode 100644 index 0000000..bdbadbb --- /dev/null +++ b/packs_src/hamalron-items/tarot_070.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_070", + "_key": "!items!tarot_070", + "name": "Roi de Coupe", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 7000000, + "flags": {}, + "system": { + "type": "figure", + "symbole": "coupe", + "valeur": "roi", + "description": "

Roi de Coupe

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_071.json b/packs_src/hamalron-items/tarot_071.json new file mode 100644 index 0000000..2db75c7 --- /dev/null +++ b/packs_src/hamalron-items/tarot_071.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_071", + "_key": "!items!tarot_071", + "name": "Valet de Denier", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 7100000, + "flags": {}, + "system": { + "type": "figure", + "symbole": "denier", + "valeur": "valet", + "description": "

Valet de Denier

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_072.json b/packs_src/hamalron-items/tarot_072.json new file mode 100644 index 0000000..a8c8053 --- /dev/null +++ b/packs_src/hamalron-items/tarot_072.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_072", + "_key": "!items!tarot_072", + "name": "Cavalier de Denier", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 7200000, + "flags": {}, + "system": { + "type": "figure", + "symbole": "denier", + "valeur": "cavalier", + "description": "

Cavalier de Denier

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_073.json b/packs_src/hamalron-items/tarot_073.json new file mode 100644 index 0000000..b69f3b7 --- /dev/null +++ b/packs_src/hamalron-items/tarot_073.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_073", + "_key": "!items!tarot_073", + "name": "Reine de Denier", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 7300000, + "flags": {}, + "system": { + "type": "figure", + "symbole": "denier", + "valeur": "reine", + "description": "

Reine de Denier

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_074.json b/packs_src/hamalron-items/tarot_074.json new file mode 100644 index 0000000..949ff98 --- /dev/null +++ b/packs_src/hamalron-items/tarot_074.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_074", + "_key": "!items!tarot_074", + "name": "Roi de Denier", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 7400000, + "flags": {}, + "system": { + "type": "figure", + "symbole": "denier", + "valeur": "roi", + "description": "

Roi de Denier

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_075.json b/packs_src/hamalron-items/tarot_075.json new file mode 100644 index 0000000..36ac13b --- /dev/null +++ b/packs_src/hamalron-items/tarot_075.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_075", + "_key": "!items!tarot_075", + "name": "Valet d'Épée", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 7500000, + "flags": {}, + "system": { + "type": "figure", + "symbole": "epee", + "valeur": "valet", + "description": "

Valet d'Épée

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_076.json b/packs_src/hamalron-items/tarot_076.json new file mode 100644 index 0000000..f431e6e --- /dev/null +++ b/packs_src/hamalron-items/tarot_076.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_076", + "_key": "!items!tarot_076", + "name": "Cavalier d'Épée", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 7600000, + "flags": {}, + "system": { + "type": "figure", + "symbole": "epee", + "valeur": "cavalier", + "description": "

Cavalier d'Épée

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_077.json b/packs_src/hamalron-items/tarot_077.json new file mode 100644 index 0000000..86e04cd --- /dev/null +++ b/packs_src/hamalron-items/tarot_077.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_077", + "_key": "!items!tarot_077", + "name": "Reine d'Épée", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 7700000, + "flags": {}, + "system": { + "type": "figure", + "symbole": "epee", + "valeur": "reine", + "description": "

Reine d'Épée

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/packs_src/hamalron-items/tarot_078.json b/packs_src/hamalron-items/tarot_078.json new file mode 100644 index 0000000..fb6154b --- /dev/null +++ b/packs_src/hamalron-items/tarot_078.json @@ -0,0 +1,17 @@ +{ + "_id": "tarot_078", + "_key": "!items!tarot_078", + "name": "Roi d'Épée", + "type": "tarot", + "img": "icons/svg/treasure.svg", + "folder": null, + "sort": 7800000, + "flags": {}, + "system": { + "type": "figure", + "symbole": "epee", + "valeur": "roi", + "description": "

Roi d'Épée

", + "image": "icons/svg/treasure.svg" + } +} \ No newline at end of file diff --git a/tools/generate-tarot-packs.mjs b/tools/generate-tarot-packs.mjs new file mode 100644 index 0000000..29ed54f --- /dev/null +++ b/tools/generate-tarot-packs.mjs @@ -0,0 +1,80 @@ +import { promises as fs } from "fs" +import path from "path" +import { compilePack } from "@foundryvtt/foundryvtt-cli" + +const DATA_FILE = "assets/data/tarot.json" +const SRC_DIR = "packs_src/hamalron-items" +const DEST_DIR = "packs-system/hamalron-items" + +async function main() { + const raw = await fs.readFile(DATA_FILE, "utf-8") + const cards = JSON.parse(raw) + + if (!Array.isArray(cards)) { + console.error("Invalid data: expected array") + process.exit(1) + } + + console.log(`Generating ${cards.length} tarot cards...`) + + // Clear and recreate the destination LevelDB + await fs.mkdir(DEST_DIR, { recursive: true }) + + // Create a temporary directory for individual JSON files + await fs.mkdir(SRC_DIR, { recursive: true }) + const existing = await fs.readdir(SRC_DIR) + for (const f of existing) { + await fs.unlink(path.join(SRC_DIR, f)) + } + + // Write each card as a single JSON document file + for (let i = 0; i < cards.length; i++) { + const card = cards[i] + const id = `tarot_${String(i + 1).padStart(3, "0")}` + const doc = { + _id: id, + _key: `!items!${id}`, + name: card.name, + type: "tarot", + img: "icons/svg/treasure.svg", + folder: null, + sort: (i + 1) * 100000, + flags: {}, + system: { + type: card.type, + symbole: card.symbole, + valeur: card.valeur, + description: card.description || `

${card.name}

`, + image: "icons/svg/treasure.svg", + }, + } + // Write as JSON file for the pack tool + const filePath = path.join(SRC_DIR, `${id}.json`) + await fs.writeFile(filePath, JSON.stringify(doc, null, 2), "utf-8") + } + + console.log("Compiling to LevelDB...") + + // Compile using the CLI + try { + // Update the source dir to use JSON instead of YAML + await compilePack(SRC_DIR, DEST_DIR, { yaml: false, log: true }) + console.log(`Compiled to ${DEST_DIR}`) + + // Count entries + const files = await fs.readdir(DEST_DIR) + console.log(`LevelDB files: ${files.length}`) + } catch (e) { + console.error("Compile error:", e.message) + // Fallback: copy JSON to a packs/ dir + console.log("Fallback: copy JSON to packs/...") + const fallbackDir = "packs" + await fs.mkdir(fallbackDir, { recursive: true }) + for (const f of existing) { + await fs.unlink(path.join(SRC_DIR, f)).catch(() => {}) + } + console.log(`JSON data in ${SRC_DIR} (compile to LevelDB manually)`) + } +} + +main().catch(console.error) diff --git a/tools/packCompendiumsToDist.mjs b/tools/packCompendiumsToDist.mjs index e400c42..da74f19 100644 --- a/tools/packCompendiumsToDist.mjs +++ b/tools/packCompendiumsToDist.mjs @@ -1,3 +1,3 @@ import { CompendiumsManager } from './CompendiumsManager.mjs'; -CompendiumsManager.packToDistDir() +CompendiumsManager.packToDistDir('packs_src', 'packs-system')