Files
foundryvtt-wh4-lang-fr-fr/scripts/vJgjAfwq8MuwE2HL.js
T
uberwald 38d88c2f19
Validation JSON / validate (push) Successful in 13s
Mise àjour vers 9.6.0
2026-05-18 07:23:40 +02:00

5 lines
323 B
JavaScript

let number = await new Roll("1d10").roll();
number.toMessage(this.script.getChatData());
this.actor.update({"system.status.fortune.value" : parseInt(this.actor.system.status.fortune.value) + number.total})
this.script.message(`Ajouté ${number.total} points de Fortune`, {whisper : ChatMessage.getWhisperRecipients("GM")})