foundryvtt-wh4-lang-fr-fr/reference_scripts/6JrUjs3g5x6bFnj3.js

8 lines
438 B
JavaScript
Raw Permalink Normal View History

let bite = await fromUuid("Compendium.wfrp4e-core.items.pLW9SVX0TVTYPiPv")
let sense = await fromUuid("Compendium.wfrp4e-core.items.9h82z72XGo9tfgQS")
let biteData = bite.toObject();
let senseData = sense.toObject();
biteData.system.specification.value = 6 - this.actor.characteristics.s.bonus;
senseData.name = senseData.name += " (Smell)"
this.actor.createEmbeddedDocuments("Item", [biteData, senseData], {fromEffect : this.effect.id})