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

4 lines
273 B
JavaScript
Raw Permalink Normal View History

let item = await fromUuid("Compendium.wfrp4e-core.items.kJNAY1YRaCy9IgmT")
let terrorTraitItem = item.toObject()
terrorTraitItem.system.specification.value = Number(this.effect.item.system.specification.value)
this.actor.createEmbeddedDocuments("Item", [terrorTraitItem]);