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

7 lines
334 B
JavaScript

const uuids = [
"Compendium.wfrp4e-core.items.Item.wMwSRDmgiF2IdCJr", // Painless
"Compendium.wfrp4e-core.items.Item.IAWyzDfC286a9MPz", // Immunity to Psychology
];
const items = await Promise.all(uuids.map(uuid => fromUuid(uuid)));
await this.actor.createEmbeddedDocuments("Item", items, {fromEffect: this.effect.id});