From a8ba245495b4157a7162859e1efc8872cf34d540 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Wed, 30 Dec 2020 11:51:37 +0100 Subject: [PATCH] Corrections sur echec total en sort --- module/actor.js | 2 +- system.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/actor.js b/module/actor.js index 3fb84aa3..f4e3b5a3 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1292,7 +1292,7 @@ export class RdDActor extends Actor { } } else { if (rolled.isETotal) { // Echec total ! - depenseReve = Math.max(myReve.value, Math.floor(depenseReve * 1.5)) + depenseReve = Math.min(myReve.value, Math.floor(depenseReve * 1.5)) explications += "
Echec TOTAL du sort : " + depenseReve + " Points de Rêve"; // TODO: mise en réserve d'un échec total... } else { diff --git a/system.json b/system.json index 73da1492..a4e23bb2 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "name": "foundryvtt-reve-de-dragon", "title": "Rêve de Dragon", "description": "Rêve de Dragon RPG for FoundryVTT", - "version": "1.1.23", + "version": "1.1.24", "minimumCoreVersion": "0.7.5", "compatibleCoreVersion": "0.7.8", "templateVersion": 72,