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

7 lines
334 B
JavaScript
Raw Normal View History

2024-10-08 20:52:09 +02:00
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});