Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
7
scripts/syRJs8P4aBFB5USD.js
Normal file
7
scripts/syRJs8P4aBFB5USD.js
Normal file
@@ -0,0 +1,7 @@
|
||||
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})
|
||||
Reference in New Issue
Block a user