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

4 lines
284 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
let item = await fromUuid("Compendium.wfrp4e-core.items.1dUizIgLBgn4jICC");
let data = item.toObject();
data.name += " (Woodlands)";
this.actor.createEmbeddedDocuments("Item", Array(this.effect.sourceTest.result.overcast.usage.other.current).fill(data), {fromEffect : this.effect.id})