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

4 lines
273 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
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]);