Inputs for buildAttackResult.

interface BuildAttackInput {
    aimBodyPartCode?: string;
    attackML: sohl.entity.modifier.MasteryLevelModifier;
    impact: sohl.entity.modifier.ImpactModifier;
    parent: SohlLogic;
    roll?: sohl.entity.roll.SimpleRoll;
    spread?: number;
    testType: string;
    title?: string;
    tokenLogic?: SohlTokenDocumentLogic;
}

Properties

aimBodyPartCode?: string

The targeted body part shortcode, stored on the result for the cards + injury.

The strike mode's attack mastery-level modifier

The strike mode's impact modifier.

parent: SohlLogic

Logic that owns the resulting AttackResult and its cloned modifiers (the attacker).

Pre-rolled d100 (tests); defaults to a fresh random roll.

spread?: number

Strike spread for injury hit-location scatter (melee spread; missile 6/8).

testType: string

Test type id, e.g. TEST_TYPE.AUTOCOMBATMELEE.id.

title?: string

Display label for the attack (weapon/strike-mode name), stored as the result's title.

The attacker's token, recorded on the result.