Add test for multiple rolls with min/max modifiers

This commit is contained in:
Oliver Rümpelein 2020-12-31 00:52:59 +01:00
parent c315742412
commit b569e5488e
2 changed files with 62 additions and 6 deletions

View file

@ -40,9 +40,6 @@ export function rollCheckMultipleDice(
const dice = provider.getNextRolls(numberOfDice);
console.log(dice[0]);
console.log(rollOptions.minCritFail);
const firstResult = dice[0];
if (firstResult >= rollOptions.minCritFail) {
@ -62,9 +59,6 @@ export function rollCheckMultipleDice(
.reduce(partitionCallback, [[], []])
.map((a) => a.sort((r1, r2) => r2 - r1));
console.log(critSuccesses);
console.log(otherRolls);
const sortedRollResults: Array<number> = critSuccesses.concat(otherRolls);
const evaluationResult = sortedRollResults