From 1eefa62495450c19a2d2d08cb2dc87abf90b0785 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 25 Jan 2022 22:06:10 +0100 Subject: [PATCH] =?UTF-8?q?Cacher=20les=20points=20de=20t=C3=A2che?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/item.js | 10 ++++++---- templates/actor-sheet.html | 5 ++++- templates/chat-resultat-tache.html | 3 ++- 3 files changed, 12 insertions(+), 6 deletions(-) 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