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

8 lines
439 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
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 += " (Odorat)"
2024-05-16 17:57:51 +02:00
this.actor.createEmbeddedDocuments("Item", [biteData, senseData], {fromEffect : this.effect.id})