Auto format
This commit is contained in:
parent
07b68020b2
commit
7dc1724ab7
@ -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 });
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user