From 29725046409a4b0740e0acc5431777e721a25a5d Mon Sep 17 00:00:00 2001 From: sladecraven Date: Sat, 27 Mar 2021 14:55:32 +0100 Subject: [PATCH] Fix caracXP, chance, /payer --- module/rdd-utility.js | 5 ++++- system.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/module/rdd-utility.js b/module/rdd-utility.js index 34573582..8764eb4d 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -553,7 +553,10 @@ export class RdDUtility { // Gestion du bouton payer html.on("click", '#payer-button', event => { let sumdenier = event.currentTarget.attributes['data-somme-denier'].value; - let quantite = event.currentTarget.attributes['data-quantite'].value; + let quantite = 1; + if ( event.currentTarget.attributes['data-quantite'] ) { + quantite = event.currentTarget.attributes['data-quantite'].value; + } let jsondata = event.currentTarget.attributes['data-jsondata'] let objData if (jsondata) { diff --git a/system.json b/system.json index 2d5bb8e4..d003b074 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.3.39", + "version": "1.3.40", "manifestPlusVersion": "1.0.0", "minimumCoreVersion": "0.7.5", "compatibleCoreVersion": "0.7.9",