Appel à la chance

+ ajout RdDRoll pour jet avec callbacks
This commit is contained in:
2020-12-06 19:29:10 +01:00
parent 29eb489b27
commit 6cc594bb76
5 changed files with 292 additions and 1 deletions

View File

@ -97,6 +97,11 @@ export class RdDResolutionTable {
}
}
static async rollData(rollData ) {
rollData.rolled = await this.roll(rollData.caracValue, rollData.finalLevel, rollData.bonus);
return rollData;
}
/* -------------------------------------------- */
static async roll(caracValue, finalLevel, bonus = 0 ) {
let chances = this.computeChances(caracValue, finalLevel);