A candidate disease the being may contract, gathered from the world and the Item compendium packs (only disease-subtype afflictions are contractable). source is the affliction's creation data (toObject()), copied verbatim onto the being when the disease is contracted.

interface AfflictionChoice {
    contagionIndex: number;
    name: string;
    onsetFormula: null | string;
    shortcode: string;
    source: Record<string, unknown>;
}

Properties

contagionIndex: number

Contagion index (CI). Lower is more contagious — the contagion roll is made against CI × Endurance, so a lower CI is a lower (easier-to-fail) target.

name: string

Display name of the disease.

onsetFormula: null | string

A sohl.entity.roll.SimpleRoll formula giving the days between contracting the affliction and its onset; null when it has none.

shortcode: string

The affliction's shortcode — the <option> value in the contagion dialog.

source: Record<string, unknown>

Creation data for copying the disease onto an actor.