diff --git a/module/actor-creature-sheet.js b/module/actor-creature-sheet.js index 31c83701..5c85d0a8 100644 --- a/module/actor-creature-sheet.js +++ b/module/actor-creature-sheet.js @@ -6,7 +6,7 @@ import { RdDUtility } from "./rdd-utility.js"; -const creatureCarac = [ "taille", "constitution", "force", "perception", "volonte", "reve" ] +/* -------------------------------------------- */ export class RdDActorCreatureSheet extends ActorSheet { /** @override */ @@ -54,7 +54,8 @@ export class RdDActorCreatureSheet extends ActorSheet { data.data.nbCritiques = this.actor.GetNumberBlessures(data.data.blessures.critiques.liste ); data.data.competencecreature = data.itemsByType["competencecreature"]; - + + console.log("DATA:", data); return data; } diff --git a/module/actor-sheet.js b/module/actor-sheet.js index fc9564d9..7ad9afff 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -5,6 +5,7 @@ import { RdDUtility } from "./rdd-utility.js"; +/* -------------------------------------------- */ export class RdDActorSheet extends ActorSheet { /** @override */ @@ -20,7 +21,6 @@ export class RdDActorSheet extends ActorSheet { } /* -------------------------------------------- */ - _checkNull(items) { if (items && items.length) { return items; @@ -29,7 +29,6 @@ export class RdDActorSheet extends ActorSheet { } /* -------------------------------------------- */ - getData() { let data = super.getData(); @@ -102,7 +101,6 @@ export class RdDActorSheet extends ActorSheet { data.data.nbLegeres = this.actor.GetNumberBlessures(data.data.blessures.legeres.liste ); data.data.nbGraves = this.actor.GetNumberBlessures(data.data.blessures.graves.liste ); data.data.nbCritiques = this.actor.GetNumberBlessures(data.data.blessures.critiques.liste ); - console.log( data.data.compteurs ); // low is normal, this the base used to compute the grid. data.data.fatigueHTML = "