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

8 lines
441 B
JavaScript
Raw Permalink Normal View History

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})