Skip to content

@dice-roller/rpg-dice-roller / results / ScoredItem

Interface: ScoredItem โ€‹

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

A die roll or group member that modifier handlers can transform using the result helpers.

Extended by โ€‹

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).


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.


mapResult? โ€‹

readonly optional mapResult?: ExpressionResult

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

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


useInTotal โ€‹

readonly useInTotal: boolean

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

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


value โ€‹

readonly value: number

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

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

MIT Licensed ยท Credits