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

5 lines
287 B
JavaScript
Raw Permalink Normal View History

2024-06-06 21:09:27 +02:00
const sin = this.effect.sourceActor.system.status.sin.value;
const roll = new Roll(`2d10 - ${sin}`);
await roll.evaluate();
await roll.toMessage({flavor: `${this.effect.name}`});
this.actor.system.status.mood.addEntry(`${this.effect.name} (${this.effect.sourceActor.name})`, roll.total);