interface D20RollConstructorOptions {
    bonus?: string | number;
    check?: boolean;
    critical?: number;
    flavor?: string;
    misfire?: number;
    staticRoll?: null | number;
}

Hierarchy (view full)

Properties

bonus?: string | number

An additional bonus to be added to the roll.

check?: boolean

Is this actually a check.

true

critical?: number

The number on the d20 that is considered a critical success.

20

flavor?: string

The flavor of the roll

misfire?: number

The number and below on the d20 that is considered a misfire.

staticRoll?: null | number

A number used as a static roll result of the d20. If null, the d20 is rolled normally and the result is used.

null