Skip to content

Function: readDice() ​

ts
function readDice(spec, faces): DieRoll[] | null;

Defined in: src/dice.ts:853

What happened to each die of a roll, from its faces alone: which were rerolled, which exploded, which were dropped. Null when the faces are not ones this spec could have thrown, one too many or too few included.

Parameters ​

spec ​

RollSpec

faces ​

readonly unknown[]

Returns ​

DieRoll[] | null

MIT © John Morris