Add slaying dice behaviour.
This commit is contained in:
parent
55beeb92c9
commit
aaa10d7469
2 changed files with 33 additions and 23 deletions
|
@ -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]),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue