Fix sconst/sust

This commit is contained in:
sladecraven 2021-01-20 21:06:03 +01:00
parent e7ad1f2a32
commit 9d676a74d8
2 changed files with 3 additions and 4 deletions

View File

@ -463,9 +463,8 @@ export class RdDUtility {
let tailleData = tableCaracDerivee[bonusDomKey]; let tailleData = tableCaracDerivee[bonusDomKey];
data.attributs.plusdom.value = tailleData.plusdom; data.attributs.plusdom.value = tailleData.plusdom;
tailleData = tableCaracDerivee[Number(data.carac.taille.value)]; data.attributs.sconst.value = tableCaracDerivee[Number(data.carac.constitution.value)].sconst;
data.attributs.sconst.value = tailleData.sconst; data.attributs.sust.value = tableCaracDerivee[Number(data.carac.taille.value)].sust;
data.attributs.sust.value = tailleData.sust;
data.attributs.encombrement.value = (parseInt(data.carac.force.value) + parseInt(data.carac.taille.value)) / 2; 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); data.carac.melee.value = Math.floor((parseInt(data.carac.force.value) + parseInt(data.carac.agilite.value)) / 2);

View File

@ -2,7 +2,7 @@
"name": "foundryvtt-reve-de-dragon", "name": "foundryvtt-reve-de-dragon",
"title": "Rêve de Dragon", "title": "Rêve de Dragon",
"description": "Rêve de Dragon RPG for FoundryVTT", "description": "Rêve de Dragon RPG for FoundryVTT",
"version": "1.2.27", "version": "1.2.28",
"manifestPlusVersion": "1.0.0", "manifestPlusVersion": "1.0.0",
"minimumCoreVersion": "0.7.5", "minimumCoreVersion": "0.7.5",
"compatibleCoreVersion": "0.7.8", "compatibleCoreVersion": "0.7.8",