Inputs for building a damage chat card (buildDamageCardData).

interface DamageCardInput {
    actorId: string;
    aspect: ImpactAspect;
    handlerUuid: string;
    hasTarget: boolean;
    impact: number;
    impactLabel: string;
    notes: string;
    rollResult: string;
    scopeData: PlainObject;
    sourceActorUuid: string;
    targetName: string;
    title: string;
}

Properties

actorId: string

The owning (attacking) actor's id, for the card's data-actor-id.

aspect: ImpactAspect

Damage aspect of the blow.

handlerUuid: string

The UUID of the handler for the defense buttons.

hasTarget: boolean

Whether the damage card has a target.

impact: number

Total impact delivered.

impactLabel: string

Impact dice formula with aspect suffix, e.g. "2d6+3e".

notes: string

Additional notes for the damage card.

rollResult: string

Human-readable roll breakdown, e.g. "[3, 5] + 3".

scopeData: PlainObject

The resolveInjury button's scope payload (a plain injury request).

sourceActorUuid: string

The attacker actor's UUID (source of the blow).

targetName: string

The targeted defender's name, or an empty string if nothing is targeted.

title: string

Card title, e.g. "Broadsword – Cut".