From 3aa13511cd83f3c3812bf5f8bc77aef39ee6849a Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 26 Mar 2021 00:56:17 +0100 Subject: [PATCH 1/3] Fix jet de moral L'affichage du message ne fonctionnait plus --- module/actor.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/actor.js b/module/actor.js index 95e599d5..e0d7f51f 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1427,9 +1427,8 @@ export class RdDActor extends Actor { /* -------------------------------------------- */ async moralIncDec(ajustementMoral) { - + const actorData = Misc.data(this); if (ajustementMoral != 0) { - const actorData = Misc.data(this); let moral = Misc.toInt(actorData.data.compteurs.moral.value) + ajustementMoral if (moral > 3) { // exaltation const exaltation = Misc.toInt(actorData.data.compteurs.exaltation.value) + moral - 3; From fd73b2c7afe8bbe5a86d65cdb9815c77a500acee Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 26 Mar 2021 01:12:51 +0100 Subject: [PATCH 2/3] =?UTF-8?q?Fix=20r=C3=A9cup=C3=A9ration=20chance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/actor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/actor.js b/module/actor.js index e0d7f51f..02534de7 100644 --- a/module/actor.js +++ b/module/actor.js @@ -2280,7 +2280,7 @@ export class RdDActor extends Actor { /* -------------------------------------------- */ async chanceActuelleIncDec(value, limit = true) { - chance = Math.max(Misc.templateData(this).compteurs.chance.value + value, 0); + let chance = Math.max(Misc.templateData(this).compteurs.chance.value + value, 0); if (limit) { chance = Math.min(chance.value, this.getChance()) } From bf9e74ef7c7ee436bc3e49d1428a6baaa92ee848 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 26 Mar 2021 01:15:24 +0100 Subject: [PATCH 3/3] =?UTF-8?q?Ne=20pas=20afficher=20la=20description=20d'?= =?UTF-8?q?un=20sort=20manqu=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pas d'affichage pour un sort mis en réserve non plus --- templates/chat-resultat-sort.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/chat-resultat-sort.html b/templates/chat-resultat-sort.html index b17920a9..7eb6b543 100644 --- a/templates/chat-resultat-sort.html +++ b/templates/chat-resultat-sort.html @@ -24,6 +24,12 @@
+{{#if rolled.isETotal}} +Le sort a des effets imprévus! +{{else if rolled.isSuccess}} +{{#unless isSortReserve}} {{{selectedSort.data.description}}} +{{/unless}} +{{/if}}