Add slaying dice behaviour.

This commit is contained in:
Oliver Rümpelein 2021-01-02 16:40:30 +01:00
parent 55beeb92c9
commit aaa10d7469
2 changed files with 33 additions and 23 deletions

View file

@ -314,13 +314,12 @@ describe("DS4 Rolls with multiple and slaying dice, first throw", () => {
});
});
// TODO: Implement & reactivate
xdescribe("DS4 Rolls with multiple and slaying dice, recurrent throw", () => {
describe("DS4 Rolls with multiple and slaying dice, recurrent throw", () => {
it("Should regularly succeed with the first roll being a `20`", () => {
const rollProvider = mockMultipleThrows([20, 2, 19]);
expect(rollCheckMultipleDice(48, {}, rollProvider)).toEqual(
new RollResult(40, RollResultStatus.CRITICAL_FAILURE, [20, 2, 19]),
expect(rollCheckMultipleDice(48, { useSlayingDice: true, slayingDiceRepetition: true }, rollProvider)).toEqual(
new RollResult(41, RollResultStatus.SUCCESS, [20, 19, 2]),
);
});
});