Compare commits

...

1 Commits

Author SHA1 Message Date
d557fac83f Corrections sur Sens Aiguisé 2026-03-04 11:46:29 +01:00
37 changed files with 4229 additions and 121 deletions

View File

@@ -8,7 +8,7 @@
}
],
"url": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr",
"version": "9.4.1",
"version": "9.4.2",
"esmodules": [
"wh4_fr.js",
"modules/babele-register.js",
@@ -120,7 +120,7 @@
}
],
"manifest": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/raw/v10/module.json",
"download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-9-4-1.zip",
"download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-9-4-2.zip",
"id": "wh4-fr-translation",
"compatibility": {
"minimum": "13",

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
MANIFEST-001295
MANIFEST-001299

View File

@@ -1,7 +1,7 @@
2026/02/26-22:04:24.137615 7f63f7fff6c0 Recovering log #1293
2026/02/26-22:04:24.149067 7f63f7fff6c0 Delete type=3 #1291
2026/02/26-22:04:24.149129 7f63f7fff6c0 Delete type=0 #1293
2026/02/26-22:04:46.481770 7f61f6fff6c0 Level-0 table #1298: started
2026/02/26-22:04:46.481795 7f61f6fff6c0 Level-0 table #1298: 0 bytes OK
2026/02/26-22:04:46.488240 7f61f6fff6c0 Delete type=0 #1296
2026/02/26-22:04:46.495528 7f61f6fff6c0 Manual compaction at level-0 from '!journal!3IgmiprzLB6Lwenc' @ 72057594037927935 : 1 .. '!journal.pages!suuYN87Al1ZZWtQQ.jhgNnhWhrkOpKs1B' @ 0 : 0; will stop at (end)
2026/03/04-00:01:24.197108 7f56f9bff6c0 Recovering log #1297
2026/03/04-00:01:24.207650 7f56f9bff6c0 Delete type=3 #1295
2026/03/04-00:01:24.207718 7f56f9bff6c0 Delete type=0 #1297
2026/03/04-00:08:22.861497 7f54e37ef6c0 Level-0 table #1302: started
2026/03/04-00:08:22.861539 7f54e37ef6c0 Level-0 table #1302: 0 bytes OK
2026/03/04-00:08:22.902864 7f54e37ef6c0 Delete type=0 #1300
2026/03/04-00:08:22.939799 7f54e37ef6c0 Manual compaction at level-0 from '!journal!3IgmiprzLB6Lwenc' @ 72057594037927935 : 1 .. '!journal.pages!suuYN87Al1ZZWtQQ.jhgNnhWhrkOpKs1B' @ 0 : 0; will stop at (end)

View File

@@ -1,7 +1,7 @@
2026/02/26-22:02:13.939121 7f640dbff6c0 Recovering log #1289
2026/02/26-22:02:13.988348 7f640dbff6c0 Delete type=3 #1287
2026/02/26-22:02:13.988418 7f640dbff6c0 Delete type=0 #1289
2026/02/26-22:03:13.280219 7f61f6fff6c0 Level-0 table #1294: started
2026/02/26-22:03:13.280273 7f61f6fff6c0 Level-0 table #1294: 0 bytes OK
2026/02/26-22:03:13.287523 7f61f6fff6c0 Delete type=0 #1292
2026/02/26-22:03:13.287733 7f61f6fff6c0 Manual compaction at level-0 from '!journal!3IgmiprzLB6Lwenc' @ 72057594037927935 : 1 .. '!journal.pages!suuYN87Al1ZZWtQQ.jhgNnhWhrkOpKs1B' @ 0 : 0; will stop at (end)
2026/02/26-22:04:24.137615 7f63f7fff6c0 Recovering log #1293
2026/02/26-22:04:24.149067 7f63f7fff6c0 Delete type=3 #1291
2026/02/26-22:04:24.149129 7f63f7fff6c0 Delete type=0 #1293
2026/02/26-22:04:46.481770 7f61f6fff6c0 Level-0 table #1298: started
2026/02/26-22:04:46.481795 7f61f6fff6c0 Level-0 table #1298: 0 bytes OK
2026/02/26-22:04:46.488240 7f61f6fff6c0 Delete type=0 #1296
2026/02/26-22:04:46.495528 7f61f6fff6c0 Manual compaction at level-0 from '!journal!3IgmiprzLB6Lwenc' @ 72057594037927935 : 1 .. '!journal.pages!suuYN87Al1ZZWtQQ.jhgNnhWhrkOpKs1B' @ 0 : 0; will stop at (end)

View File

@@ -1 +1 @@
MANIFEST-001297
MANIFEST-001301

View File

@@ -1,7 +1,7 @@
2026/02/26-22:04:24.151462 7f640d3fe6c0 Recovering log #1295
2026/02/26-22:04:24.164087 7f640d3fe6c0 Delete type=3 #1293
2026/02/26-22:04:24.164148 7f640d3fe6c0 Delete type=0 #1295
2026/02/26-22:04:46.511516 7f61f6fff6c0 Level-0 table #1300: started
2026/02/26-22:04:46.511542 7f61f6fff6c0 Level-0 table #1300: 0 bytes OK
2026/02/26-22:04:46.518083 7f61f6fff6c0 Delete type=0 #1298
2026/02/26-22:04:46.532552 7f61f6fff6c0 Manual compaction at level-0 from '!folders!3uquYH73ttCdoH0I' @ 72057594037927935 : 1 .. '!items!ylFhk7mGZOnAJTUT' @ 0 : 0; will stop at (end)
2026/03/04-00:01:24.215723 7f56f93fe6c0 Recovering log #1299
2026/03/04-00:01:24.225890 7f56f93fe6c0 Delete type=3 #1297
2026/03/04-00:01:24.225964 7f56f93fe6c0 Delete type=0 #1299
2026/03/04-00:08:22.071002 7f54e37ef6c0 Level-0 table #1304: started
2026/03/04-00:08:22.071038 7f54e37ef6c0 Level-0 table #1304: 0 bytes OK
2026/03/04-00:08:22.104811 7f54e37ef6c0 Delete type=0 #1302
2026/03/04-00:08:22.138957 7f54e37ef6c0 Manual compaction at level-0 from '!folders!3uquYH73ttCdoH0I' @ 72057594037927935 : 1 .. '!items!ylFhk7mGZOnAJTUT' @ 0 : 0; will stop at (end)

View File

@@ -1,7 +1,7 @@
2026/02/26-22:02:13.990565 7f640d3fe6c0 Recovering log #1291
2026/02/26-22:02:14.041205 7f640d3fe6c0 Delete type=3 #1289
2026/02/26-22:02:14.041341 7f640d3fe6c0 Delete type=0 #1291
2026/02/26-22:03:13.287859 7f61f6fff6c0 Level-0 table #1296: started
2026/02/26-22:03:13.287883 7f61f6fff6c0 Level-0 table #1296: 0 bytes OK
2026/02/26-22:03:13.294100 7f61f6fff6c0 Delete type=0 #1294
2026/02/26-22:03:13.315154 7f61f6fff6c0 Manual compaction at level-0 from '!folders!3uquYH73ttCdoH0I' @ 72057594037927935 : 1 .. '!items!ylFhk7mGZOnAJTUT' @ 0 : 0; will stop at (end)
2026/02/26-22:04:24.151462 7f640d3fe6c0 Recovering log #1295
2026/02/26-22:04:24.164087 7f640d3fe6c0 Delete type=3 #1293
2026/02/26-22:04:24.164148 7f640d3fe6c0 Delete type=0 #1295
2026/02/26-22:04:46.511516 7f61f6fff6c0 Level-0 table #1300: started
2026/02/26-22:04:46.511542 7f61f6fff6c0 Level-0 table #1300: 0 bytes OK
2026/02/26-22:04:46.518083 7f61f6fff6c0 Delete type=0 #1298
2026/02/26-22:04:46.532552 7f61f6fff6c0 Manual compaction at level-0 from '!folders!3uquYH73ttCdoH0I' @ 72057594037927935 : 1 .. '!items!ylFhk7mGZOnAJTUT' @ 0 : 0; will stop at (end)

View File

@@ -1 +1 @@
MANIFEST-001295
MANIFEST-001299

View File

@@ -1,7 +1,7 @@
2026/02/26-22:04:24.183291 7f640dbff6c0 Recovering log #1293
2026/02/26-22:04:24.198373 7f640dbff6c0 Delete type=3 #1291
2026/02/26-22:04:24.198448 7f640dbff6c0 Delete type=0 #1293
2026/02/26-22:04:46.518228 7f61f6fff6c0 Level-0 table #1298: started
2026/02/26-22:04:46.518251 7f61f6fff6c0 Level-0 table #1298: 0 bytes OK
2026/02/26-22:04:46.524767 7f61f6fff6c0 Delete type=0 #1296
2026/02/26-22:04:46.532566 7f61f6fff6c0 Manual compaction at level-0 from '!journal!cZtNgayIw2QFhC9u' @ 72057594037927935 : 1 .. '!journal.pages!cZtNgayIw2QFhC9u.ts265H1XkisLgdow' @ 0 : 0; will stop at (end)
2026/03/04-00:01:24.249439 7f56e3fff6c0 Recovering log #1297
2026/03/04-00:01:24.259919 7f56e3fff6c0 Delete type=3 #1295
2026/03/04-00:01:24.259974 7f56e3fff6c0 Delete type=0 #1297
2026/03/04-00:08:22.139094 7f54e37ef6c0 Level-0 table #1302: started
2026/03/04-00:08:22.139129 7f54e37ef6c0 Level-0 table #1302: 0 bytes OK
2026/03/04-00:08:22.192132 7f54e37ef6c0 Delete type=0 #1300
2026/03/04-00:08:22.365177 7f54e37ef6c0 Manual compaction at level-0 from '!journal!cZtNgayIw2QFhC9u' @ 72057594037927935 : 1 .. '!journal.pages!cZtNgayIw2QFhC9u.ts265H1XkisLgdow' @ 0 : 0; will stop at (end)

View File

@@ -1,7 +1,7 @@
2026/02/26-22:02:14.115468 7f640cbfd6c0 Recovering log #1289
2026/02/26-22:02:14.169882 7f640cbfd6c0 Delete type=3 #1287
2026/02/26-22:02:14.169955 7f640cbfd6c0 Delete type=0 #1289
2026/02/26-22:03:13.301545 7f61f6fff6c0 Level-0 table #1294: started
2026/02/26-22:03:13.301610 7f61f6fff6c0 Level-0 table #1294: 0 bytes OK
2026/02/26-22:03:13.307921 7f61f6fff6c0 Delete type=0 #1292
2026/02/26-22:03:13.315187 7f61f6fff6c0 Manual compaction at level-0 from '!journal!cZtNgayIw2QFhC9u' @ 72057594037927935 : 1 .. '!journal.pages!cZtNgayIw2QFhC9u.ts265H1XkisLgdow' @ 0 : 0; will stop at (end)
2026/02/26-22:04:24.183291 7f640dbff6c0 Recovering log #1293
2026/02/26-22:04:24.198373 7f640dbff6c0 Delete type=3 #1291
2026/02/26-22:04:24.198448 7f640dbff6c0 Delete type=0 #1293
2026/02/26-22:04:46.518228 7f61f6fff6c0 Level-0 table #1298: started
2026/02/26-22:04:46.518251 7f61f6fff6c0 Level-0 table #1298: 0 bytes OK
2026/02/26-22:04:46.524767 7f61f6fff6c0 Delete type=0 #1296
2026/02/26-22:04:46.532566 7f61f6fff6c0 Manual compaction at level-0 from '!journal!cZtNgayIw2QFhC9u' @ 72057594037927935 : 1 .. '!journal.pages!cZtNgayIw2QFhC9u.ts265H1XkisLgdow' @ 0 : 0; will stop at (end)

View File

@@ -1 +1 @@
MANIFEST-001295
MANIFEST-001299

View File

@@ -1,7 +1,7 @@
2026/02/26-22:04:24.123515 7f640d3fe6c0 Recovering log #1293
2026/02/26-22:04:24.135202 7f640d3fe6c0 Delete type=3 #1291
2026/02/26-22:04:24.135283 7f640d3fe6c0 Delete type=0 #1293
2026/02/26-22:04:46.488408 7f61f6fff6c0 Level-0 table #1298: started
2026/02/26-22:04:46.488442 7f61f6fff6c0 Level-0 table #1298: 0 bytes OK
2026/02/26-22:04:46.495308 7f61f6fff6c0 Delete type=0 #1296
2026/02/26-22:04:46.495540 7f61f6fff6c0 Manual compaction at level-0 from '!journal!50u8VAjdmovyr0hx' @ 72057594037927935 : 1 .. '!journal.pages!yzw9I0r3hCK7PJnz.sPNCYj2nR3Cp3jHd' @ 0 : 0; will stop at (end)
2026/03/04-00:01:24.180286 7f56e3fff6c0 Recovering log #1297
2026/03/04-00:01:24.190010 7f56e3fff6c0 Delete type=3 #1295
2026/03/04-00:01:24.190063 7f56e3fff6c0 Delete type=0 #1297
2026/03/04-00:08:22.033573 7f54e37ef6c0 Level-0 table #1302: started
2026/03/04-00:08:22.033610 7f54e37ef6c0 Level-0 table #1302: 0 bytes OK
2026/03/04-00:08:22.070732 7f54e37ef6c0 Delete type=0 #1300
2026/03/04-00:08:22.138944 7f54e37ef6c0 Manual compaction at level-0 from '!journal!50u8VAjdmovyr0hx' @ 72057594037927935 : 1 .. '!journal.pages!yzw9I0r3hCK7PJnz.sPNCYj2nR3Cp3jHd' @ 0 : 0; will stop at (end)

View File

@@ -1,7 +1,7 @@
2026/02/26-22:02:13.889590 7f63f7fff6c0 Recovering log #1289
2026/02/26-22:02:13.936962 7f63f7fff6c0 Delete type=3 #1287
2026/02/26-22:02:13.937017 7f63f7fff6c0 Delete type=0 #1289
2026/02/26-22:03:13.273521 7f61f6fff6c0 Level-0 table #1294: started
2026/02/26-22:03:13.273553 7f61f6fff6c0 Level-0 table #1294: 0 bytes OK
2026/02/26-22:03:13.280005 7f61f6fff6c0 Delete type=0 #1292
2026/02/26-22:03:13.287724 7f61f6fff6c0 Manual compaction at level-0 from '!journal!50u8VAjdmovyr0hx' @ 72057594037927935 : 1 .. '!journal.pages!yzw9I0r3hCK7PJnz.sPNCYj2nR3Cp3jHd' @ 0 : 0; will stop at (end)
2026/02/26-22:04:24.123515 7f640d3fe6c0 Recovering log #1293
2026/02/26-22:04:24.135202 7f640d3fe6c0 Delete type=3 #1291
2026/02/26-22:04:24.135283 7f640d3fe6c0 Delete type=0 #1293
2026/02/26-22:04:46.488408 7f61f6fff6c0 Level-0 table #1298: started
2026/02/26-22:04:46.488442 7f61f6fff6c0 Level-0 table #1298: 0 bytes OK
2026/02/26-22:04:46.495308 7f61f6fff6c0 Delete type=0 #1296
2026/02/26-22:04:46.495540 7f61f6fff6c0 Manual compaction at level-0 from '!journal!50u8VAjdmovyr0hx' @ 72057594037927935 : 1 .. '!journal.pages!yzw9I0r3hCK7PJnz.sPNCYj2nR3Cp3jHd' @ 0 : 0; will stop at (end)

View File

@@ -1 +1 @@
MANIFEST-001295
MANIFEST-001299

View File

@@ -1,7 +1,7 @@
2026/02/26-22:04:24.106231 7f640dbff6c0 Recovering log #1293
2026/02/26-22:04:24.120853 7f640dbff6c0 Delete type=3 #1291
2026/02/26-22:04:24.120905 7f640dbff6c0 Delete type=0 #1293
2026/02/26-22:04:46.475371 7f61f6fff6c0 Level-0 table #1298: started
2026/02/26-22:04:46.475399 7f61f6fff6c0 Level-0 table #1298: 0 bytes OK
2026/02/26-22:04:46.481643 7f61f6fff6c0 Delete type=0 #1296
2026/02/26-22:04:46.495513 7f61f6fff6c0 Manual compaction at level-0 from '!tables!4l60Lxv8cpsyy2Cg' @ 72057594037927935 : 1 .. '!tables.results!tfaYKDZqu7kgZvRG.yvbwKursaixh2dby' @ 0 : 0; will stop at (end)
2026/03/04-00:01:24.164425 7f56f93fe6c0 Recovering log #1297
2026/03/04-00:01:24.174481 7f56f93fe6c0 Delete type=3 #1295
2026/03/04-00:01:24.174536 7f56f93fe6c0 Delete type=0 #1297
2026/03/04-00:08:21.946425 7f54e37ef6c0 Level-0 table #1302: started
2026/03/04-00:08:21.946466 7f54e37ef6c0 Level-0 table #1302: 0 bytes OK
2026/03/04-00:08:21.989164 7f54e37ef6c0 Delete type=0 #1300
2026/03/04-00:08:21.989360 7f54e37ef6c0 Manual compaction at level-0 from '!tables!4l60Lxv8cpsyy2Cg' @ 72057594037927935 : 1 .. '!tables.results!tfaYKDZqu7kgZvRG.yvbwKursaixh2dby' @ 0 : 0; will stop at (end)

View File

@@ -1,7 +1,7 @@
2026/02/26-22:02:13.830812 7f640d3fe6c0 Recovering log #1289
2026/02/26-22:02:13.887231 7f640d3fe6c0 Delete type=3 #1287
2026/02/26-22:02:13.887289 7f640d3fe6c0 Delete type=0 #1289
2026/02/26-22:03:13.266764 7f61f6fff6c0 Level-0 table #1294: started
2026/02/26-22:03:13.266813 7f61f6fff6c0 Level-0 table #1294: 0 bytes OK
2026/02/26-22:03:13.273358 7f61f6fff6c0 Delete type=0 #1292
2026/02/26-22:03:13.287711 7f61f6fff6c0 Manual compaction at level-0 from '!tables!4l60Lxv8cpsyy2Cg' @ 72057594037927935 : 1 .. '!tables.results!tfaYKDZqu7kgZvRG.yvbwKursaixh2dby' @ 0 : 0; will stop at (end)
2026/02/26-22:04:24.106231 7f640dbff6c0 Recovering log #1293
2026/02/26-22:04:24.120853 7f640dbff6c0 Delete type=3 #1291
2026/02/26-22:04:24.120905 7f640dbff6c0 Delete type=0 #1293
2026/02/26-22:04:46.475371 7f61f6fff6c0 Level-0 table #1298: started
2026/02/26-22:04:46.475399 7f61f6fff6c0 Level-0 table #1298: 0 bytes OK
2026/02/26-22:04:46.481643 7f61f6fff6c0 Delete type=0 #1296
2026/02/26-22:04:46.495513 7f61f6fff6c0 Manual compaction at level-0 from '!tables!4l60Lxv8cpsyy2Cg' @ 72057594037927935 : 1 .. '!tables.results!tfaYKDZqu7kgZvRG.yvbwKursaixh2dby' @ 0 : 0; will stop at (end)

View File

@@ -1 +1 @@
MANIFEST-000938
MANIFEST-000942

View File

@@ -1,7 +1,7 @@
2026/02/26-22:04:24.166725 7f63f7fff6c0 Recovering log #936
2026/02/26-22:04:24.181007 7f63f7fff6c0 Delete type=3 #934
2026/02/26-22:04:24.181079 7f63f7fff6c0 Delete type=0 #936
2026/02/26-22:04:46.525121 7f61f6fff6c0 Level-0 table #941: started
2026/02/26-22:04:46.525166 7f61f6fff6c0 Level-0 table #941: 0 bytes OK
2026/02/26-22:04:46.532271 7f61f6fff6c0 Delete type=0 #939
2026/02/26-22:04:46.532577 7f61f6fff6c0 Manual compaction at level-0 from '!journal!056ILNNrLiPq3Gi3' @ 72057594037927935 : 1 .. '!journal.pages!yfZxl4I7XAuUF6r3.apXmOlZRmGT4GreB' @ 0 : 0; will stop at (end)
2026/03/04-00:01:24.231380 7f56f9bff6c0 Recovering log #940
2026/03/04-00:01:24.242231 7f56f9bff6c0 Delete type=3 #938
2026/03/04-00:01:24.242297 7f56f9bff6c0 Delete type=0 #940
2026/03/04-00:08:22.105094 7f54e37ef6c0 Level-0 table #945: started
2026/03/04-00:08:22.105137 7f54e37ef6c0 Level-0 table #945: 0 bytes OK
2026/03/04-00:08:22.138651 7f54e37ef6c0 Delete type=0 #943
2026/03/04-00:08:22.138969 7f54e37ef6c0 Manual compaction at level-0 from '!journal!056ILNNrLiPq3Gi3' @ 72057594037927935 : 1 .. '!journal.pages!yfZxl4I7XAuUF6r3.apXmOlZRmGT4GreB' @ 0 : 0; will stop at (end)

View File

@@ -1,7 +1,7 @@
2026/02/26-22:02:14.050871 7f640dbff6c0 Recovering log #932
2026/02/26-22:02:14.109358 7f640dbff6c0 Delete type=3 #930
2026/02/26-22:02:14.109436 7f640dbff6c0 Delete type=0 #932
2026/02/26-22:03:13.308043 7f61f6fff6c0 Level-0 table #937: started
2026/02/26-22:03:13.308070 7f61f6fff6c0 Level-0 table #937: 0 bytes OK
2026/02/26-22:03:13.315010 7f61f6fff6c0 Delete type=0 #935
2026/02/26-22:03:13.315204 7f61f6fff6c0 Manual compaction at level-0 from '!journal!056ILNNrLiPq3Gi3' @ 72057594037927935 : 1 .. '!journal.pages!yfZxl4I7XAuUF6r3.apXmOlZRmGT4GreB' @ 0 : 0; will stop at (end)
2026/02/26-22:04:24.166725 7f63f7fff6c0 Recovering log #936
2026/02/26-22:04:24.181007 7f63f7fff6c0 Delete type=3 #934
2026/02/26-22:04:24.181079 7f63f7fff6c0 Delete type=0 #936
2026/02/26-22:04:46.525121 7f61f6fff6c0 Level-0 table #941: started
2026/02/26-22:04:46.525166 7f61f6fff6c0 Level-0 table #941: 0 bytes OK
2026/02/26-22:04:46.532271 7f61f6fff6c0 Delete type=0 #939
2026/02/26-22:04:46.532577 7f61f6fff6c0 Manual compaction at level-0 from '!journal!056ILNNrLiPq3Gi3' @ 72057594037927935 : 1 .. '!journal.pages!yfZxl4I7XAuUF6r3.apXmOlZRmGT4GreB' @ 0 : 0; will stop at (end)

View File

@@ -1,31 +1,28 @@
if (!this.item.name.includes("(") || this.item.system.tests.value.includes("Terrain") || this.item.system.tests.value.toLowerCase().includes("(any)"))
{
let Tests = this.item.system.tests.value
if (!this.item.name.includes("(") || this.item.system.tests.value.includes("Terrain") || this.item.system.tests.value.toLowerCase().includes("(any)")) {
let tests = this.item.system.tests.value
let name = this.item.name
// If name already specifies, make sure Tests value reflects that
if (name.includes("(") && !name.toLowerCase().includes("(any)"))
{
if (name.includes("(") && !name.toLowerCase().includes("(any)")) {
let terrain = name.split("(")[1].split(")")[0]
tests = tests.replace("the Terrain", terrain)
}
else // If no sense specified, provide dialog choice
{
let choice = await ItemDialog.create(ItemDialog.objectToArray({
coastal : "Littoral",
deserts : "Déserts",
marshes : "Marécages",
rocky : "Rocailleux",
tundra : "Toundra",
woodlands : "Régions boisées"
coastal: "Littoral",
deserts: "Déserts",
marshes: "Marécages",
rocky: "Rocailleux",
tundra: "Toundra",
woodlands: "Régions boisées"
}, this.item.img), 1, "Choisissez un Terrain");
if (choice[0])
{
if (choice[0]) {
name = `${name.split("(")[0].trim()} (${choice[0].name})`
tests = tests.replace("Terrain", choice[0].name + " Terrain")
}
}
this.effect.updateSource({name})
this.item.updateSource({name, "system.tests.value" : tests})
this.effect.updateSource({ name })
this.item.updateSource({ name, "system.tests.value": tests })
}

View File

@@ -1,6 +1,6 @@
if (!this.item.name.includes("(") || this.item.system.tests.value.includes("(Sense)") || this.item.system.tests.value.toLowerCase().includes("(any)"))
{
let Tests = this.item.system.tests.value
let tests = this.item.system.tests.value
let name = this.item.name
// If name already specifies, make sure Tests value reflects that

2009
tools/check-tests-log.txt Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

111
tools/check-tests.js Normal file
View File

@@ -0,0 +1,111 @@
import fs from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const SCRIPTS_DIR = path.join(__dirname, '..', 'scripts');
const LOG_FILE = path.join(__dirname, 'check-tests-log.txt');
const log = [];
function writeLog(message) {
console.log(message);
log.push(message);
}
function getAllJsFiles(dir) {
const files = [];
function traverse(currentDir) {
const entries = fs.readdirSync(currentDir, { withFileTypes: true });
for (const entry of entries) {
const fullPath = path.join(currentDir, entry.name);
if (entry.isDirectory()) {
traverse(fullPath);
} else if (entry.isFile() && entry.name.endsWith('.js')) {
files.push(fullPath);
}
}
}
traverse(dir);
return files;
}
function checkForTests(filePath) {
const content = fs.readFileSync(filePath, 'utf-8');
return content.includes('let Tests');
}
// Programme principal
writeLog('='.repeat(60));
writeLog('VÉRIFICATION DE "let Tests" DANS LES SCRIPTS');
writeLog('='.repeat(60));
writeLog(`Date: ${new Date().toISOString()}`);
writeLog(`Répertoire: ${SCRIPTS_DIR}\n`);
const allFiles = getAllJsFiles(SCRIPTS_DIR);
writeLog(`Total de fichiers trouvés: ${allFiles.length}\n`);
const filesWithTests = [];
const filesWithoutTests = [];
allFiles.forEach(filePath => {
const relativePath = path.relative(path.join(__dirname, '..'), filePath);
if (checkForTests(filePath)) {
filesWithTests.push(relativePath);
} else {
filesWithoutTests.push(relativePath);
}
});
// Afficher les résultats
writeLog('=== FICHIERS CONTENANT "let Tests" ===\n');
if (filesWithTests.length > 0) {
filesWithTests.forEach(file => {
writeLog(`${file}`);
});
} else {
writeLog('Aucun fichier trouvé.');
}
writeLog(`\nTotal: ${filesWithTests.length} fichier(s)\n`);
writeLog('='.repeat(60));
writeLog('=== FICHIERS NE CONTENANT PAS "let Tests" ===\n');
if (filesWithoutTests.length > 0) {
filesWithoutTests.forEach(file => {
writeLog(`${file}`);
});
} else {
writeLog('Aucun fichier trouvé.');
}
writeLog(`\nTotal: ${filesWithoutTests.length} fichier(s)\n`);
writeLog('='.repeat(60));
writeLog('RÉSUMÉ');
writeLog('='.repeat(60));
writeLog(`Fichiers avec "let Tests": ${filesWithTests.length}`);
writeLog(`Fichiers sans "let Tests": ${filesWithoutTests.length}`);
writeLog(`Total de fichiers analysés: ${allFiles.length}`);
writeLog('='.repeat(60));
// Sauvegarder le log
fs.writeFileSync(LOG_FILE, log.join('\n'), 'utf-8');
writeLog(`\nLog sauvegardé dans: ${LOG_FILE}`);
// Exporter les résultats en JSON
const results = {
date: new Date().toISOString(),
totalFiles: allFiles.length,
filesWithTests: filesWithTests,
filesWithoutTests: filesWithoutTests
};
const resultsFile = path.join(__dirname, 'check-tests-results.json');
fs.writeFileSync(resultsFile, JSON.stringify(results, null, 2), 'utf-8');
writeLog(`Résultats sauvegardés dans: ${resultsFile}`);