Construction data for an ImpactResult.

interface Data {
    __kind?: string;
    description: string;
    impactModifier: sohl.entity.modifier.ImpactModifier;
    label: string;
    name: string;
    roll: sohl.entity.roll.SimpleRoll;
    speaker: sohl.core.logic.SohlSpeaker;
    title: 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.

description: string

Human-readable description shown on the chat card.

The impact (damage) formula: dice + modifier + aspect. Required.

label: string

A label for what caused the impact (weapon name, "fall", "spell", …).

name: string

Internal identifier for the result.

A pre-rolled impact roll (omit to roll on construction).

Speaker identity for the result's chat card.

title: string

Title shown on the chat card.