Auto format

This commit is contained in:
Vincent Vandemeulebrouck 2021-04-11 18:43:32 +02:00
parent 07b68020b2
commit 7dc1724ab7
2 changed files with 69 additions and 65 deletions

View File

@ -3320,12 +3320,14 @@ export class RdDActor extends Actor {
let newPotion = {
name: `Potion de ${potionData.data.categorie} (${potionData.name})`, type: 'potion',
img: "systems/foundryvtt-reve-de-dragon/icons/objets/fiole_verre.webp",
data: { quantite: 1, valeur_deniers: 1, encombrement: 0.01,
data: {
quantite: 1, valeur_deniers: 1, encombrement: 0.01,
categorie: potionData.data.categorie,
herbe: potionData.name,
rarete: potionData.data.rarete,
herbebrins: potionData.nbBrins,
description: "" }
description: ""
}
}
await this.createEmbeddedDocuments('Item', [newPotion], { renderSheet: true });

View File

@ -9,9 +9,11 @@ export class RdDItem extends Item {
static getTypeObjetsEquipement() {
return typesObjetsEquipement;
}
static getTypesOeuvres() {
return typesObjetsOeuvres;
}
prepareDerivedData() {
super.prepareDerivedData();
const itemData = this.data;