Inputs for buildAttackCardData.

interface AttackCardInput {
    actorId: null | string;
    aimLabel: string;
    attackerName: string;
    attackResult: sohl.entity.result.AttackResult;
    target: null | AttackCardTarget;
    title: string;
}

Properties

actorId: null | string

The attacker actor's id (for data-actor-id).

aimLabel: string

Human-readable label for the attack's aim (body part), shown on the card.

attackerName: string

Display name of the attacking token (subtitle).

The attacker's evaluated attack result (drives Aim, Aspect, AML).

target: null | AttackCardTarget

The targeted defender, or null if nothing is targeted.

title: string

Card title, e.g. "Broadsword Melee Attack".