From 9d676a74d897409b80a017d7816c45f56e3d2b14 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Wed, 20 Jan 2021 21:06:03 +0100 Subject: [PATCH] Fix sconst/sust --- module/rdd-utility.js | 5 ++--- system.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/module/rdd-utility.js b/module/rdd-utility.js index 4a96d6ef..da915867 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -463,9 +463,8 @@ export class RdDUtility { let tailleData = tableCaracDerivee[bonusDomKey]; data.attributs.plusdom.value = tailleData.plusdom; - tailleData = tableCaracDerivee[Number(data.carac.taille.value)]; - data.attributs.sconst.value = tailleData.sconst; - data.attributs.sust.value = tailleData.sust; + data.attributs.sconst.value = tableCaracDerivee[Number(data.carac.constitution.value)].sconst; + data.attributs.sust.value = tableCaracDerivee[Number(data.carac.taille.value)].sust; data.attributs.encombrement.value = (parseInt(data.carac.force.value) + parseInt(data.carac.taille.value)) / 2; data.carac.melee.value = Math.floor((parseInt(data.carac.force.value) + parseInt(data.carac.agilite.value)) / 2); diff --git a/system.json b/system.json index 3b630224..3afe82d3 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.2.27", + "version": "1.2.28", "manifestPlusVersion": "1.0.0", "minimumCoreVersion": "0.7.5", "compatibleCoreVersion": "0.7.8",