foundryvtt-wh4-lang-fr-fr/scripts/eGQAyzCFZAEQhyJl.js

5 lines
291 B
JavaScript
Raw Normal View History

2024-10-08 20:52:09 +02:00
const roll = new Roll("2d10");
await roll.evaluate();
const money = game.wfrp4e.market.addMoneyTo(this.actor, `${roll.total}b`);
await this.actor.updateEmbeddedDocuments("Item", money);
this.script.message(game.i18n.format("SCRIPT.Silvertide", {name: this.actor.name, pennies: roll.total}));