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

4 lines
295 B
JavaScript
Raw Normal View History

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