foundryvtt-wh4-lang-fr-fr/scripts/6gRixT3zIOAberJb.js

5 lines
269 B
JavaScript
Raw Normal View History

2024-06-06 22:07:28 +02:00
const disease = await fromUuid("Compendium.wfrp4e-soc.items.Item.8Q9JYtR1y3B5J6UH");
const data = disease.toObject();
data.system.incubation.value = 0;
data.system.duration.active = true;
this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id});