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

7 lines
320 B
JavaScript
Raw Permalink Normal View History

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