Construction data for a ValueModifier.

interface Data {
    __kind?: string;
    baseValue: null | number;
    customFunction: null | Function;
    deltas: sohl.entity.modifier.ValueDelta[];
    disabledReason: 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).

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.