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

7 lines
327 B
JavaScript
Raw Normal View History

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