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

4 lines
273 B
JavaScript

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]);