Skip to content

Type Alias: Stats ​

ts
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 ​

ts
rolls: number;

Defined in: src/stats.ts:8

How many rolls the history holds.


heldRolls ​

ts
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 ​

ts
diceThrown: number;

Defined in: src/stats.ts:12

How many dice those rolls threw, rerolled and exploded dice included, held dice not.


luck ​

ts
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 ​

ts
longestHot: number;

Defined in: src/stats.ts:16

The longest run of rolls above their average, and below it.


longestCold ​

ts
longestCold: number;

Defined in: src/stats.ts:17


currentStreak ​

ts
currentStreak: number;

Defined in: src/stats.ts:19

The run the history ends on: positive above average, negative below, 0 on the average.


matches ​

ts
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 ​

ts
naturalTwenties: number;

Defined in: src/stats.ts:23

A d20's natural 20 and natural 1, counted on the dice that were kept.


naturalOnes ​

ts
naturalOnes: number;

Defined in: src/stats.ts:24


faces ​

ts
faces: FaceStats | null;

Defined in: src/stats.ts:26

Each face of the focus die. Null when no focus was given.


totals ​

ts
totals: TotalStats | null;

Defined in: src/stats.ts:28

The totals of the focus spec. Null when no focus was given.

MIT © John Morris