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 = { let newPotion = {
name: `Potion de ${potionData.data.categorie} (${potionData.name})`, type: 'potion', name: `Potion de ${potionData.data.categorie} (${potionData.name})`, type: 'potion',
img: "systems/foundryvtt-reve-de-dragon/icons/objets/fiole_verre.webp", 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, categorie: potionData.data.categorie,
herbe: potionData.name, herbe: potionData.name,
rarete: potionData.data.rarete, rarete: potionData.data.rarete,
herbebrins: potionData.nbBrins, herbebrins: potionData.nbBrins,
description: "" } description: ""
}
} }
await this.createEmbeddedDocuments('Item', [newPotion], { renderSheet: true }); await this.createEmbeddedDocuments('Item', [newPotion], { renderSheet: true });

View File

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