From 9a573d5f518012b71b368cbaa0c57e18b53e96b9 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 17 Nov 2020 19:29:18 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20r=C3=AAve=20dans=20le=20header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/actor-sheet.js | 8 ++++++++ templates/actor-sheet.html | 12 ++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 8d1c4e76..a6beb5cc 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -320,10 +320,18 @@ export class RdDActorSheet extends ActorSheet { this.actor.santeIncDec("endurance", 1); this.render(true); }); + html.find('#ptreve-actuel-plus').click((event) => { + this.actor.updatePointsDeReve(1); + this.render(true); + }); html.find('#endurance-moins').click((event) => { this.actor.santeIncDec("endurance", -1); this.render(true); }); + html.find('#ptreve-actuel-moins').click((event) => { + this.actor.updatePointsDeReve(-1); + this.render(true); + }); html.find('#fatigue-plus').click((event) => { this.actor.santeIncDec("fatigue", 1); this.render(true); diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 17f1663b..d1a5d82b 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -14,14 +14,18 @@ /{{data.sante.vie.max}}
- Endurance + / - + Endurance + / - /{{data.sante.endurance.max}}
Sonné :
- +
+ Rêve + / - + /{{data.reve.seuil.value}} +
+
Fatigue + / - {{{data.fatigueHTML}}} @@ -411,10 +415,6 @@ Regarder les Terres Medianes
-
  • - Points de Rêve actuels : - -
  • Seuil de Rêve :