foundryvtt-wh4-lang-fr-fr/reference_scripts/dbOSvpgcPjsc2uvq.js

7 lines
391 B
JavaScript

let menacing = (await fromUuid("Compendium.wfrp4e-core.items.Item.0hn6UaKq8CoZP2zD")).toObject();
let sense = (await fromUuid("Compendium.wfrp4e-core.items.Item.9h82z72XGo9tfgQS")).toObject();
sense.name += " (Sight)";
sense.system.tests.value = sense.system.tests.value.replace("Sense", "Sight")
this.actor.createEmbeddedDocuments("Item", [menacing, sense], {fromEffect : this.effect.id})