roll-parser - v3.0.0-beta.0
    Preparing search index...

    Type Alias DieResult

    Individual die roll result with metadata.

    type DieResult = {
        critical: boolean;
        fumble: boolean;
        initialResult?: number;
        modifiers: DieModifier[];
        result: number;
        sides: number;
    }
    Index
    critical: boolean

    True if rolled the maximum value (always false for Fate dice)

    fumble: boolean

    True if rolled 1 (always false for Fate dice)

    initialResult?: number

    Raw first roll before any mutation (e.g., compound-explode accumulation). Only populated when result has been overwritten with a computed value. Consumers that need the original face (nat-20 / nat-1 detection) should read initialResult ?? result.

    modifiers: DieModifier[]

    Modifiers applied to this die

    result: number

    The rolled value

    sides: number

    Number of sides on the die. Normal dice use sides >= 1. Fate/Fudge dice use sides = 0 as a sentinel — they have no configurable sides and always produce results in {-1, 0, +1}.