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

8 lines
441 B
JavaScript
Raw Normal View History

2024-05-16 17:57:51 +02:00
let bite = await fromUuid("Compendium.wfrp4e-core.items.pLW9SVX0TVTYPiPv")
let venom = await fromUuid("Compendium.wfrp4e-core.items.gFkRm9wS65qe18Xv")
let biteData = bite.toObject();
let venomData = venom.toObject();
biteData.system.specification.value = 3 - this.actor.characteristics.s.bonus;
venomData.system.specification.value = "Average"
this.actor.createEmbeddedDocuments("Item", [biteData, venomData], {fromEffect : this.effect.id})