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

7 lines
386 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
let menacing = (await fromUuid("Compendium.wfrp4e-core.items.Item.0hn6UaKq8CoZP2zD")).toObject();
let sense = (await fromUuid("Compendium.wfrp4e-core.items.Item.9h82z72XGo9tfgQS")).toObject();
sense.name += " (Vue)";
sense.system.tests.value = sense.system.tests.value.replace("Sens", "Vue")
2024-05-16 17:57:51 +02:00
this.actor.createEmbeddedDocuments("Item", [menacing, sense], {fromEffect : this.effect.id})