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

5 lines
269 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
let item = await fromUuid("Compendium.wfrp4e-core.items.uqGxFOEqeurwkAO3")
let data = item.toObject();
setProperty(data, "flags.wfrp4e.breath", "fire")
data.system.specification.value = 5
this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id})