diff --git a/packs/tables-pnj/000069.ldb b/packs/tables-pnj/000069.ldb deleted file mode 100644 index 21617d7..0000000 Binary files a/packs/tables-pnj/000069.ldb and /dev/null differ diff --git a/packs/tables-pnj/000071.ldb b/packs/tables-pnj/000071.ldb deleted file mode 100644 index fd65f85..0000000 Binary files a/packs/tables-pnj/000071.ldb and /dev/null differ diff --git a/packs/tables-pnj/000073.ldb b/packs/tables-pnj/000073.ldb deleted file mode 100644 index b57ee9c..0000000 Binary files a/packs/tables-pnj/000073.ldb and /dev/null differ diff --git a/packs/tables-pnj/000075.ldb b/packs/tables-pnj/000075.ldb deleted file mode 100644 index dcaeb04..0000000 Binary files a/packs/tables-pnj/000075.ldb and /dev/null differ diff --git a/packs/tables-pnj/000074.log b/packs/tables-pnj/000076.log similarity index 61% rename from packs/tables-pnj/000074.log rename to packs/tables-pnj/000076.log index 772bf8c..db040ab 100644 Binary files a/packs/tables-pnj/000074.log and b/packs/tables-pnj/000076.log differ diff --git a/packs/tables-pnj/000078.ldb b/packs/tables-pnj/000078.ldb new file mode 100644 index 0000000..0eebbf6 Binary files /dev/null and b/packs/tables-pnj/000078.ldb differ diff --git a/packs/tables-pnj/LOG b/packs/tables-pnj/LOG index 349e65b..240d710 100644 --- a/packs/tables-pnj/LOG +++ b/packs/tables-pnj/LOG @@ -55,3 +55,15 @@ 2026/05/28-00:53:23.184161 7f3e6effd6c0 Level-0 table #75: started 2026/05/28-00:53:23.202618 7f3e6effd6c0 Level-0 table #75: 1901920 bytes OK 2026/05/28-00:53:23.208730 7f3e6effd6c0 Delete type=0 #72 +2026/05/28-01:02:57.320650 7f3e6effd6c0 Level-0 table #77: started +2026/05/28-01:02:57.341951 7f3e6effd6c0 Level-0 table #77: 1962797 bytes OK +2026/05/28-01:02:57.347793 7f3e6effd6c0 Delete type=0 #74 +2026/05/28-01:02:57.348132 7f3e6effd6c0 Compacting 4@0 + 1@1 files +2026/05/28-01:02:57.369982 7f3e6effd6c0 Generated table #78@0: 12958 keys, 1962797 bytes +2026/05/28-01:02:57.370013 7f3e6effd6c0 Compacted 4@0 + 1@1 files => 1962797 bytes +2026/05/28-01:02:57.376098 7f3e6effd6c0 compacted to: files[ 0 1 1 0 0 0 0 ] +2026/05/28-01:02:57.376330 7f3e6effd6c0 Delete type=2 #69 +2026/05/28-01:02:57.376716 7f3e6effd6c0 Delete type=2 #71 +2026/05/28-01:02:57.377097 7f3e6effd6c0 Delete type=2 #73 +2026/05/28-01:02:57.377594 7f3e6effd6c0 Delete type=2 #75 +2026/05/28-01:02:57.377833 7f3e6effd6c0 Delete type=2 #77 diff --git a/packs/tables-pnj/MANIFEST-000048 b/packs/tables-pnj/MANIFEST-000048 index 43afcb5..2bd7a16 100644 Binary files a/packs/tables-pnj/MANIFEST-000048 and b/packs/tables-pnj/MANIFEST-000048 differ diff --git a/scripts/NpcDialog.js b/scripts/NpcDialog.js index b467622..c1aaf55 100644 --- a/scripts/NpcDialog.js +++ b/scripts/NpcDialog.js @@ -3,6 +3,7 @@ import { createNpcActor, generateClientMission, generateEncounter, generateQuick import { NPC_RELATIONS } from './data/npcTables.js'; import { generateAndCreateTravellerNpc } from './travellerNpcGenerator.js'; import { generateRandomName } from './data/travellerNpcGenerator.js'; +import { localizeSkill } from './mgt2eSkills.js'; import { CITIZEN_CATEGORY_LIST, EXPERIENCE_LEVEL_LIST, @@ -325,6 +326,18 @@ function registerHandlebarsHelpers() { Handlebars.registerHelper('formatCredits', (amount) => formatCredits(amount)); Handlebars.registerHelper('contains', (text, search) => String(text ?? '').includes(search)); + // Helper pour localiser une compétence (ex: 'pilot' -> 'Pilote') + Handlebars.registerHelper('localizeSkill', (skillFqn) => { + if (!skillFqn) return ''; + return localizeSkill(String(skillFqn)); + }); + + // Helper pour joindre un tableau de compétences en les localisant + Handlebars.registerHelper('joinLocalizedSkills', (arr, sep = ', ') => { + if (!Array.isArray(arr)) return ''; + return arr.map(skill => localizeSkill(String(skill))).join(sep); + }); + // Helpers pour Traveller NPC Handlebars.registerHelper('gt', (a, b) => a > b); diff --git a/templates/npc-result.hbs b/templates/npc-result.hbs index 2f23b5e..ad66f7a 100644 --- a/templates/npc-result.hbs +++ b/templates/npc-result.hbs @@ -34,7 +34,7 @@
Résumé jouable

Relation : {{relation.summary}}

-

Compétences-types : {{join experience.profile.skills ", "}}

+

Compétences-types : {{joinLocalizedSkills experience.profile.skills ", "}}

Niveau moyen de compétence : {{experience.profile.skillLevel}}

Bonus de caractéristiques : {{#if experience.profile.characteristicBonuses.length}}