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

7 lines
321 B
JavaScript
Raw Normal View History

2024-10-08 20:52:09 +02:00
const uuids = [
"Compendium.wfrp4e-core.items.Item.nWLsoWQBCjPRKxYx", // Robust
"Compendium.wfrp4e-core.items.Item.jviOQmy0luQOySC2", // Tenacious
];
const items = await Promise.all(uuids.map(uuid => fromUuid(uuid)));
await this.actor.createEmbeddedDocuments("Item", items, {fromEffect: this.effect.id});