Add test for multiple rolls with min/max modifiers
This commit is contained in:
parent
c315742412
commit
b569e5488e
2 changed files with 62 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue