foundryvtt-wh4-lang-fr-fr/scripts/F9P8Nh4AKnqSGg8C.js

7 lines
327 B
JavaScript

const uuids = [
"Compendium.wfrp4e-core.items.Item.bxbTiLzbaz4vdukT", // Hunter's Eye
"Compendium.wfrp4e-core.items.Item.XSb3QVB9ipPBFt56", // Shadow
];
const items = await Promise.all(uuids.map(uuid => fromUuid(uuid)));
await this.actor.createEmbeddedDocuments("Item", items, {fromEffect: this.effect.id});