From aeb7d7f8f40c6386172294d275b557a563c1de36 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Mon, 7 Dec 2020 09:29:25 +0100 Subject: [PATCH] =?UTF-8?q?#64=20:=20Blocage=20de=20l'=C3=A9dition=20des?= =?UTF-8?q?=20comp=C3=A9tences=20pour=20les=20joueurs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/item-sheet.js | 1 + templates/item-competence-sheet.html | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/module/item-sheet.js b/module/item-sheet.js index aef5a734..7e260cba 100644 --- a/module/item-sheet.js +++ b/module/item-sheet.js @@ -33,6 +33,7 @@ export class RdDItemSheet extends ItemSheet { let data = super.getData(); data.bonusCaseList = RdDItemSort.getBonusCaseList(data, true); + data.isGM = game.user.isGM; // Pour vérouiller certaines éditions return data; } diff --git a/templates/item-competence-sheet.html b/templates/item-competence-sheet.html index 764801c0..d15ba0f4 100644 --- a/templates/item-competence-sheet.html +++ b/templates/item-competence-sheet.html @@ -2,7 +2,13 @@
-

+

+ {{#if isGM}} + + {{else}} + {{item.name}} + {{/if}} +