Lancer un sort avec RdDRoll

This commit is contained in:
2020-12-08 23:07:41 +01:00
parent e46bcce2da
commit f1fbf3549a
4 changed files with 128 additions and 111 deletions

View File

@ -102,9 +102,9 @@ export class RdDResolutionTable {
rollData.rolled = await this.roll(rollData.caracValue, rollData.finalLevel, rollData.bonus);
return rollData;
}
/* -------------------------------------------- */
static async roll(caracValue, finalLevel, bonus = 0 ) {
static async roll(caracValue, finalLevel, bonus = undefined ) {
let chances = this.computeChances(caracValue, finalLevel);
chances.showDice = true;
this.updateChancesWithBonus( chances, bonus);