From 8958377fdbe3daf1029cffc47b8b4808706bf5c0 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 4 May 2021 11:38:52 +0200 Subject: [PATCH] suppression code commentaire --- module/actor-sheet.js | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/module/actor-sheet.js b/module/actor-sheet.js index e29ca2f2..4b5b3512 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -35,49 +35,17 @@ export class RdDActorSheet extends ActorSheet { /* -------------------------------------------- */ async getData() { - // 0.8.0 const objectData = Misc.data(this.object); - // -------------- version 0.7.9 - // let formData = { - // cssClass: this.entity.owner ? "editable" : "locked", - // editable: this.isEditable, - // entity: duplicate(this.entity.data), - // limited: this.entity.limited, - // options: this.options, - // owner: this.entity.owner, - // title: this.title - // } - // // Entity data - // formData.actor = formData.entity; - // formData.data = formData.entity.data; - - // // Owned items - // formData.items = formData.actor.items; - // formData.items.sort((a, b) => (a.sort || 0) - (b.sort || 0)); - - // -------------- version 0.8.0 - - // // Copy and sort Items - // items.sort((a, b) => (a.sort || 0) - (b.sort || 0)); - // data.items = items; - - // // Copy Active Effects - // data.effects = effects; - //console.log("---- data"); - - // // Return template data let formData = { title: this.title, id: objectData.id, type: objectData.type, img: objectData.img, name: objectData.name, - // actor: this.object, editable: this.isEditable, cssClass: this.isEditable ? "editable" : "locked", data: foundry.utils.deepClone(Misc.templateData(this.object)), effects: this.object.effects.map(e => foundry.utils.deepClone(e.data)), - // items: items, limited: this.object.limited, options: this.options, owner: this.document.isOwner,