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

7 lines
367 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
let infected = await fromUuid("Compendium.wfrp4e-core.items.V0c3qBU1CMm8bmsW")
let fear = await fromUuid("Compendium.wfrp4e-core.items.pTorrE0l3VybAbtn")
let infectedData = infected.toObject();
let fearData = fear.toObject();
fearData.system.specification.value = 2;
this.actor.createEmbeddedDocuments("Item", [fearData, infectedData], {fromEffect : this.effect.id})