Compendiums : Armes et protections

This commit is contained in:
2023-11-28 21:42:31 +01:00
parent d4733f0c20
commit ca4b7f2803
58 changed files with 211 additions and 193 deletions

View File

@@ -59,19 +59,16 @@ export class WastelandItemSheet extends ItemSheet {
editable: this.isEditable,
cssClass: this.isEditable ? "editable" : "locked",
attributs: WastelandUtility.getAttributs(),
config: duplicate(game.system.wasteland.config),
data: itemData.system,
system: itemData.system,
limited: this.object.limited,
options: this.options,
owner: this.document.isOwner,
description: await TextEditor.enrichHTML(this.object.system.description, {async: true}),
mr: (this.object.type == 'specialisation'),
isGM: game.user.isGM
}
if ( objectData.type == "don") {
formData.sacrifice = await TextEditor.enrichHTML(this.object.system.sacrifice, {async: true})
}
//this.options.editable = !(this.object.origin == "embeddedItem");
console.log("ITEM DATA", formData, this);
return formData;
}