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",