Files
foundryvtt-wh4-lang-fr-fr/scripts/syRJs8P4aBFB5USD.js

7 lines
365 B
JavaScript

if (this.actor?.system?.details?.god?.value !== "Sigmar") return
if (this.actor?.currentCareer?.careergroup?.value !== "Prêtre"
&& this.actor?.currentCareer?.careergroup?.value !== "Prêtre Guerrier" ) return
let currentSin = this.actor.system.status.sin.value
let updatedSin = currentSin + 2
await this.actor.update({"system.status.sin.value": updatedSin})