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

5 lines
256 B
JavaScript
Raw Permalink Normal View History

2024-10-08 20:52:09 +02:00
const uuid = "Compendium.wfrp4e-core.items.Item.pTorrE0l3VybAbtn";
const item = await fromUuid(uuid);
const data = item.toObject();
data.system.specification.value = 1;
await this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id});