Skip to content

@dice-roller/rpg-dice-roller / results / DieResult

Interface: DieResult โ€‹

Defined in: src/results/types.ts:61

A single die roll in a pool.

Extends โ€‹

Properties โ€‹

calculationValue โ€‹

readonly calculationValue: number

Defined in: src/results/types.ts:28

The value used in totals (e.g. 1 / -1 / 0 for target successes / failures).

Inherited from โ€‹

ScoredItem.calculationValue


flags โ€‹

readonly flags: readonly ("max" | "min" | "explode-matching-batch" | "explode" | "drop" | "re-roll" | "unique" | "critical-success" | "critical-failure" | "compound" | "penetrate" | "explode-matching-batch-failure" | "re-roll-once" | "target-success" | "target-failure" | "unique-once")[]

Defined in: src/results/types.ts:32

Semantic markers for presenters; setting a flag alone does not change the total.

Inherited from โ€‹

ScoredItem.flags


initialValue โ€‹

readonly initialValue: number

Defined in: src/results/types.ts:64

The value originally rolled, before any modifiers.


mapResult? โ€‹

readonly optional mapResult?: ExpressionResult

Defined in: src/results/types.ts:34

The evaluated expression used to map this item, including any nested rolls.

Inherited from โ€‹

ScoredItem.mapResult


type โ€‹

readonly type: "die"

Defined in: src/results/types.ts:62


useInTotal โ€‹

readonly useInTotal: boolean

Defined in: src/results/types.ts:30

false when dropped (or otherwise excluded from the total).

Inherited from โ€‹

ScoredItem.useInTotal


value โ€‹

readonly value: number

Defined in: src/results/types.ts:26

The value after modifiers (e.g. after re-rolls, or max / min).

Inherited from โ€‹

ScoredItem.value

MIT Licensed ยท Credits