Type Alias: Stats
type Stats = object;Defined in: src/stats.ts:6
Everything worth saying about a history of rolls. Pure: a history in, numbers out.
Properties
rolls
rolls: number;Defined in: src/stats.ts:8
How many rolls the history holds.
heldRolls
heldRolls: number;Defined in: src/stats.ts:10
How many of those rolls held some dice from the roll before. They count their new dice, and are left out of luck, streaks, matches and totals.
diceThrown
diceThrown: number;Defined in: src/stats.ts:12
How many dice those rolls threw, rerolled and exploded dice included, held dice not.
luck
luck: number | null;Defined in: src/stats.ts:14
Mean of each roll's luck (0 to 1); 0.5 is exactly as lucky as the dice promise. Null with no rolls.
longestHot
longestHot: number;Defined in: src/stats.ts:16
The longest run of rolls above their average, and below it.
longestCold
longestCold: number;Defined in: src/stats.ts:17
currentStreak
currentStreak: number;Defined in: src/stats.ts:19
The run the history ends on: positive above average, negative below, 0 on the average.
matches
matches: number;Defined in: src/stats.ts:21
Rolls of two or more dice all showing the same face. A roll that rerolled or exploded a die is not counted.
naturalTwenties
naturalTwenties: number;Defined in: src/stats.ts:23
A d20's natural 20 and natural 1, counted on the dice that were kept.
naturalOnes
naturalOnes: number;Defined in: src/stats.ts:24
faces
faces: FaceStats | null;Defined in: src/stats.ts:26
Each face of the focus die. Null when no focus was given.
totals
totals: TotalStats | null;Defined in: src/stats.ts:28
The totals of the focus spec. Null when no focus was given.