roll-parser - v3.4.0
    Preparing search index...

    Type Alias DieMarks

    Per-die markers. Every slot is optional; an omitted slot leaves the die's text untouched, so {} renders a breakdown with no markup whatsoever.

    text arrives as the die's value already wrapped by any inner mark, and composition order is fixed: critical then fumble innermost, then exactly one of dropped, success, or failure outermost — matching the priority RollResult.rendered uses, where a dropped die is never also shown as a success.

    { critical: (_die, text) => `<b>${text}</b>`, dropped: (_die, text) => `<s>${text}</s>` }
    // renders <s><b>20</b></s>
    type DieMarks = {
        critical?: (die: DieResult, text: string) => string;
        dropped?: (die: DieResult, text: string) => string;
        droppedGroup?: (inner: string) => string;
        failure?: (die: DieResult, text: string) => string;
        fumble?: (die: DieResult, text: string) => string;
        success?: (die: DieResult, text: string) => string;
    }
    Index
    critical?: (die: DieResult, text: string) => string

    DieResult.critical — the default rule or an explicit cs threshold.

    dropped?: (die: DieResult, text: string) => string

    Excluded from the total by kh/kl/dh/dl, a reroll, or group selection.

    droppedGroup?: (inner: string) => string

    Wraps a whole sub-roll dropped by group selection ({1d8, 1d10}kh1).

    Inside it, dropped, success, and failure are suppressed — the wrapper already carries the verdict, and marking a dropped die inside a dropped sub-roll says nothing extra. critical and fumble still apply: they describe the face, not the selection. A nested droppedGroup also survives, so {{1d6, 1d8}kh1, 1d10}kh1 can wrap twice.

    failure?: (die: DieResult, text: string) => string

    Met a failure threshold.

    fumble?: (die: DieResult, text: string) => string

    DieResult.fumble — the default rule or an explicit cf threshold.

    success?: (die: DieResult, text: string) => string

    Met a success-count threshold.