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

8 lines
381 B
JavaScript
Raw Permalink Normal View History

let amount = this.effect.sourceTest.result.overcast.usage.other.current;
let sss = await fromUuid("Compendium.wfrp4e-core.items.MGEPI4jNhymNIRVz");
let strider = await fromUuid("Compendium.wfrp4e-core.items.1dUizIgLBgn4jICC");
let items = Array(amount).fill(sss).concat(Array(amount).fill(strider))
this.actor.createEmbeddedDocuments("Item", items, {fromEffect: this.effect.id})