Add tests for evaluateCheck
This commit is contained in:
parent
bafb770178
commit
98deee1856
2 changed files with 142 additions and 122 deletions
|
@ -17,7 +17,12 @@ export default function evaluateCheck(
|
|||
});
|
||||
}
|
||||
|
||||
export function assignSubChecksToDice(
|
||||
interface DieWithSubCheck {
|
||||
result: number;
|
||||
checkTargetNumber: number;
|
||||
}
|
||||
|
||||
function assignSubChecksToDice(
|
||||
dice: number[],
|
||||
checkTargetNumber: number,
|
||||
{
|
||||
|
@ -76,11 +81,6 @@ function shouldUseCoupForLastSubCheck(
|
|||
);
|
||||
}
|
||||
|
||||
interface DieWithSubCheck {
|
||||
result: number;
|
||||
checkTargetNumber: number;
|
||||
}
|
||||
|
||||
interface DS4SubCheckResult extends DieWithSubCheck, DiceTerm.Result {
|
||||
success?: boolean;
|
||||
failure?: boolean;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue