From a7ac184ca36ade32c13c22fefa79f59de180dad5 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Sat, 14 Nov 2020 20:30:30 +0100 Subject: [PATCH] #18 Gestion des sort 1+ sans selection --- module/rdd-roll-dialog.js | 3 +++ system.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/module/rdd-roll-dialog.js b/module/rdd-roll-dialog.js index 60a8440c..be5a5223 100644 --- a/module/rdd-roll-dialog.js +++ b/module/rdd-roll-dialog.js @@ -98,6 +98,9 @@ export class RdDRollDialog extends Dialog { rollData.selectedCarac = rollData.carac[rollData.competence.data.defaut_carac]; $("#carac").val(rollData.competence.data.defaut_carac); } + // Si sort, for les points de reve à 1 + if (!rollData.selectedSort.data.ptreve_reel) + rollData.selectedSort.data.ptreve_reel = 1; $("#bonusmalus").val(rollData.bmValue); updateRollResult(rollData); }); diff --git a/system.json b/system.json index c6ca0c9b..14896a5c 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": "0.9.39", + "version": "0.9.40", "minimumCoreVersion": "0.7.5", "compatibleCoreVersion": "0.7.6", "templateVersion": 44,