diff --git a/module/item.js b/module/item.js index 23bfb441..be445e19 100644 --- a/module/item.js +++ b/module/item.js @@ -404,10 +404,12 @@ export class RdDItem extends Item { `Compétence: ${tplData.competence}`, `Périodicité: ${tplData.periodicite}`, `Fatigue: ${tplData.fatigue}`, - `Difficulté: ${tplData.difficulte}`, - `Points de Tâche: ${tplData.points_de_tache}`, - `Points de Tâche atteints: ${tplData.points_de_tache_courant}` - ] + `Difficulté: ${tplData.difficulte}` + ].concat([ + tplData.cacher_points_de_tache ? [] :`Points de Tâche: ${tplData.points_de_tache}` + ]).concat([ + `Points de Tâche atteints: ${tplData.points_de_tache_courant}`] + ); return properties; } /* -------------------------------------------- */ diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 142268df..10cbdf3e 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -381,7 +381,10 @@

Tâches

Créer une nouvelle Tâche