foundryvtt-wh4-lang-fr-fr/reference_scripts/fiF9sM5UpcHMYa33.js

4 lines
295 B
JavaScript
Raw Normal View History

let item = await fromUuid("Compendium.wfrp4e-core.items.vMYEkrWj0ip6ZOdv");
let data = item.toObject();
data.name += " (Poison, Disease, Chaos)"
this.actor.createEmbeddedDocuments("Item", Array(this.effect.sourceTest.result.overcast.usage.other.current).fill(data), {fromEffect: this.effect.id})