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

6 lines
312 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
let item = await fromUuid("Compendium.wfrp4e-core.items.BqPZn6q3VHn9HUrW")
item = item.toObject()
item.name = this.effect.name
item.system.specification.value = this.actor.characteristics.s.bonus
item.system.description.value = ""
this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id})