From 50d923061b3d7b9aee09c5fd28b31f3552290dc7 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 1 Oct 2024 01:59:51 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20d'un=20champ=20pour=20les=20m=C3=A9tier?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/actor/export-scriptarium/mapping.js | 1 + template.json | 1 + templates/actor-sheet.html | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/module/actor/export-scriptarium/mapping.js b/module/actor/export-scriptarium/mapping.js index 082ed1a5..5f8d6237 100644 --- a/module/actor/export-scriptarium/mapping.js +++ b/module/actor/export-scriptarium/mapping.js @@ -53,6 +53,7 @@ const TABLEAU_SORTS = [...Array(NB_SORTS).keys()] const MAPPING_BASE = [ { column: "ID", getter: (actor, context) => actor.id }, { column: "name", getter: (actor, context) => actor.name }, + { column: "metier", getter: (actor, context) => actor.system.metier }, // { column: "biographie", getter: (actor, context) => actor.system.biographie }, { column: "taille", getter: (actor, context) => actor.system.carac.taille.value }, { column: "apparence", getter: (actor, context) => actor.system.carac.apparence.value }, diff --git a/template.json b/template.json index c3d58e20..815e9a35 100644 --- a/template.json +++ b/template.json @@ -15,6 +15,7 @@ } }, "background": { + "metier": "", "biographie": "Histoire personnelle...", "notes": "Notes", "notesmj": "Notes du MJ", diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 4f849b8b..39dddd59 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -172,6 +172,10 @@ +
  • + + +