RnK : Reroll add a extra step

This commit is contained in:
Vlyan
2021-02-03 19:41:39 +01:00
parent ca5a164f7f
commit 7969c5f526
2 changed files with 89 additions and 55 deletions

View File

@@ -16,7 +16,7 @@ export class RollL5r5e extends Roll {
difficulty: 2,
difficultyHidden: false,
voidPointUsed: false,
ringsUsed: null,
keepLimit: null,
isInitiativeRoll: false,
dicesTypes: {
std: false,
@@ -104,7 +104,7 @@ export class RollL5r5e extends Roll {
); // ignore math symbols
this.l5r5e.dicesTypes.l5r = this.dice.some((term) => term instanceof game.l5r5e.L5rBaseDie);
summary.totalBonus = Math.max(0, summary.totalSuccess - this.l5r5e.difficulty);
this.l5r5e.ringsUsed = this.dice.reduce(
this.l5r5e.keepLimit = this.dice.reduce(
(acc, term) => (term instanceof game.l5r5e.RingDie ? acc + term.number : acc),
0
);