foundryvtt-wh4-lang-fr-fr/reference_scripts/9A7rYY3FKi5XLihG.js

6 lines
423 B
JavaScript

fromUuid("Compendium.wfrp4e-core.items.5QcrpLQWWrsbKR79").then(item => {
let data = item.toObject();
data.system.tests.value = data.system.tests.value.replace("coins", "metal objects");
data.system.description.value += "<p>This Talent also extends to any metal object because of <strong>Metallic Affinity</strong></p>"
this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id})
})