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

6 lines
344 B
JavaScript
Raw Permalink Normal View History

let fortunePoints = this.effect.sourceTest.result.overcast.usage.other.current
let current = this.actor.status.fortune.value
this.actor.update({"system.status.fortune.value" : fortunePoints + current})
this.script.scriptMessage(`<b>${this.actor.prototypeToken.name}</b> fortune points increased from ${current} to ${fortunePoints + current}`)