• Build the render context for injury-card.hbs from a resolved injury. Pure and Foundry-free so it can be unit-tested; the Foundry layer supplies the InjuryCardContext and posts the result via sohl.core.logic.SohlSpeaker.

    Parameters

    • injury: ResolvedInjury

      The resolved injury to render.

    • ctx: InjuryCardContext

      Foundry-supplied context the card needs beyond the injury.

      Extra context the chat card needs beyond the resolved injury itself.

      • actorId: null | string

        The injured actor's id (for the card's data-actor-id).

      • addToCharSheet: boolean

        Whether the injury was recorded on the character sheet.

      • Optionalaim?: InjuryAimTrace

        The zone-die aim trace, present only when the location was derived; the card shows it in place of the "location overridden" notice.

      • Optionalamputation?: AmputationCardInfo

        The performed amputation test's outcome, when the wound triggered one.

      • handlerActorUuid: string

        UUID of the actor that handles the card's buttons (e.g. Shock Roll).

      • OptionalisBleeder?: boolean

        Final bleeder disposition, overriding the injury's own when an amputation result makes an otherwise-non-bleeding wound bleed.

      • OptionallocationOverridden?: boolean

        True when the player specified the hit location by hand rather than deriving it; the card then shows a "Location overridden by player" note.

      • name: string

        Card subtitle, e.g. the attacking weapon or a generic label.

      • OptionaltreatmentModifier?: number

        Treatment modifier recorded on the wound (echoed onto the card).

    Returns Record<string, unknown>

    The render context for injury-card.hbs.