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

7 lines
392 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
let scythe = (await fromUuid("Compendium.wfrp4e-core.items.CXg7XOFJwu4LZ9LM")).toObject();
scythe.name = "Scythe of Shyish";
scythe.system.damage.value = "WPB + 3"
scythe.system.equipped = true;
scythe.img = this.effect.icon;
scythe.system.qualities.value.push({name : "magical"})
this.actor.createEmbeddedDocuments("Item", [scythe], {fromEffect : this.effect.id})