diff --git a/packs/tables-pnj/000301.ldb b/packs/tables-pnj/000301.ldb new file mode 100644 index 0000000..4672c18 Binary files /dev/null and b/packs/tables-pnj/000301.ldb differ diff --git a/packs/tables-pnj/000303.ldb b/packs/tables-pnj/000303.ldb new file mode 100644 index 0000000..a11c08e Binary files /dev/null and b/packs/tables-pnj/000303.ldb differ diff --git a/packs/tables-pnj/000299.log b/packs/tables-pnj/000304.log similarity index 70% rename from packs/tables-pnj/000299.log rename to packs/tables-pnj/000304.log index 1856c41..0b47cd3 100644 Binary files a/packs/tables-pnj/000299.log and b/packs/tables-pnj/000304.log differ diff --git a/packs/tables-pnj/000305.ldb b/packs/tables-pnj/000305.ldb new file mode 100644 index 0000000..576933e Binary files /dev/null and b/packs/tables-pnj/000305.ldb differ diff --git a/packs/tables-pnj/LOG b/packs/tables-pnj/LOG index e6bf483..ebf781e 100644 --- a/packs/tables-pnj/LOG +++ b/packs/tables-pnj/LOG @@ -1,3 +1,12 @@ 2026/07/07-18:58:28.911495 7f050a7fc6c0 Recovering log #293 2026/07/07-18:58:28.922220 7f050a7fc6c0 Delete type=3 #291 2026/07/07-18:58:28.922271 7f050a7fc6c0 Delete type=0 #293 +2026/07/07-19:03:48.608112 7f0509bff6c0 Level-0 table #301: started +2026/07/07-19:03:48.662763 7f0509bff6c0 Level-0 table #301: 5087867 bytes OK +2026/07/07-19:03:48.669559 7f0509bff6c0 Delete type=0 #299 +2026/07/07-19:11:01.854852 7f0509bff6c0 Level-0 table #303: started +2026/07/07-19:11:01.894400 7f0509bff6c0 Level-0 table #303: 5140334 bytes OK +2026/07/07-19:11:01.901086 7f0509bff6c0 Delete type=0 #300 +2026/07/07-20:58:07.663642 7f0509bff6c0 Level-0 table #305: started +2026/07/07-20:58:07.704731 7f0509bff6c0 Level-0 table #305: 5207876 bytes OK +2026/07/07-20:58:07.712290 7f0509bff6c0 Delete type=0 #302 diff --git a/packs/tables-pnj/MANIFEST-000298 b/packs/tables-pnj/MANIFEST-000298 index 8c6c26b..5164ffa 100644 Binary files a/packs/tables-pnj/MANIFEST-000298 and b/packs/tables-pnj/MANIFEST-000298 differ diff --git a/scripts/batchNpcCreator.js b/scripts/batchNpcCreator.js index 1d6e569..1a5e851 100644 --- a/scripts/batchNpcCreator.js +++ b/scripts/batchNpcCreator.js @@ -198,17 +198,18 @@ class BatchNpcDialog extends HandlebarsApplicationMixin(ApplicationV2) { Hooks.on('renderActorDirectory', (app, html, data) => { if (!game.user?.isGM) return; - if (html.find('.mgt2-batch-npc-btn').length) return; + const $html = html instanceof jQuery ? html : $(html); + if ($html.find('.mgt2-batch-npc-btn').length) return; const btn = $(``); - const footer = html.find('.directory-footer'); + const footer = $html.find('.directory-footer'); if (footer.length) { footer.append(btn); } else { - html.find('.directory-header').after(btn); + $html.find('.directory-header').after(btn); } btn.on('click', () => { diff --git a/scripts/startupNotice.js b/scripts/startupNotice.js index 33ac7ea..0e68721 100644 --- a/scripts/startupNotice.js +++ b/scripts/startupNotice.js @@ -12,7 +12,7 @@ function buildStartupNoticeHtml() {
MgT2e – outils · - /commerce /pnj /rencontre /mission + /commerce /pnj /rencontre /mission /sector /subsector
par LeRatierBretonnien / Uberwald
diff --git a/styles/npc.css b/styles/npc.css index df515b2..892d58b 100644 --- a/styles/npc.css +++ b/styles/npc.css @@ -1117,26 +1117,8 @@ a.mgt2-world-link:hover { /* === Batch NPC Creator =================================================== */ .mgt2-batch-npc-form { - display: flex; - flex-direction: column; - gap: 12px; - padding: 16px; - background: #f5f0e8; - color: #222; -} - -.mgt2-batch-npc-form h3 { - color: #5f4300; - border-bottom: 2px solid #b78f26; - padding-bottom: 6px; - margin: 0 0 4px 0; - font-size: 1.1em; -} - -.mgt2-batch-npc-form legend { - color: #7a5c00; - font-weight: 600; - font-size: 0.95em; + gap: 10px; + padding: 14px 16px 12px; } .mgt2-batch-npc-form .input-group { diff --git a/templates/batch-npc-dialog.hbs b/templates/batch-npc-dialog.hbs index 0049084..99d5513 100644 --- a/templates/batch-npc-dialog.hbs +++ b/templates/batch-npc-dialog.hbs @@ -1,11 +1,11 @@ -
+

Création de PNJs par lots

Crée un PNJ pour chaque image trouvée dans un répertoire.

Répertoire source
-
+