diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 2740fcfd..b8a44023 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -55,6 +55,7 @@ export class RdDActorSheet extends ActorSheet { list.push(item); } } + // Force empty arme, at least for Esquive if (data.itemsByType.arme == undefined ) data.itemsByType.arme = []; for (const arme of data.itemsByType.arme) { @@ -75,13 +76,19 @@ export class RdDActorSheet extends ActorSheet { } } - //endurance.max below is normal, this the base used to compute the grid. + data.data.carac.taille.isTaille = true; // To avoid button link; + data.data.nbLegeres = RdDUtility.computeNbBlessures(data.data.blessures, "legeres" ); + data.data.nbGraves = RdDUtility.computeNbBlessures(data.data.blessures, "graves" ); + data.data.nbCritiques = RdDUtility.computeNbBlessures(data.data.blessures, "critiques" ); + + // low is normal, this the base used to compute the grid. data.data.fatigueHTML = "