Construction data for a CombatModifier (identical to MasteryLevelModifier.Data).

interface Data {
    __kind?: string;
    baseValue: null | number;
    critFailureDigits: number[];
    critSuccessDigits: number[];
    customFunction: null | Function;
    deltas: sohl.entity.modifier.ValueDelta[];
    disabledReason: string;
    maxTarget: number;
    minTarget: number;
    successLevelMod: number;
    svTable: LimitedDescription[];
    testDescTable: LimitedDescription[];
    title: string;
    type: string;
}

Hierarchy (View Summary)

Properties

__kind?: string

Discriminator kind, written on serialization (SohlEntity.toJSON) and read back on revival. Optional as constructor input — it is derived from the concrete class, not supplied by callers.

baseValue: null | number

The base value before deltas (null to leave unset).

critFailureDigits: number[]

Roll last-digits that make a failure critical.

critSuccessDigits: number[]

Roll last-digits that make a success critical.

customFunction: null | Function

Handler for a CUSTOM delta (null if unused).

The deltas applied on top of the base.

disabledReason: string

Reason the value is disabled; "" (or falsy) means enabled.

maxTarget: number

Upper clamp on the effective mastery level.

minTarget: number

Lower clamp on the effective mastery level.

successLevelMod: number

Flat success-level offset applied after the roll.

Success-value table for value-producing tests.

testDescTable: LimitedDescription[]

Description table for chat output.

title: string

Display title for the test.

type: string

Identifier for the kind of test.