@alpaca-software/40kdc-data
    Preparing search index...

    Interface Unit

    A unit datasheet entry with stat profiles and point costs.

    This interface was referenced by 0KdcBundledSchemas's JSON-Schema via the definition "unit".

    interface Unit {
        id: string;
        name: string;
        faction_id: string;
        role?:
            | "character"
            | "battleline"
            | "dedicated-transport"
            | "fortification"
            | "allied"
            | "epic-hero";
        attachment_role?: "leader"
        | "support"
        | null;
        profiles: [
            {
                name?: string;
                M: StatValue;
                T: number;
                W: number;
                Sv: number;
                invuln_sv?: number
                | null;
                Ld: number;
                OC: number;
                [k: string]: unknown;
            },
            ...{
                name?: string;
                M: StatValue;
                T: number;
                W: number;
                Sv: number;
                invuln_sv?: number
                | null;
                Ld: number;
                OC: number;
                [k: string]: unknown;
            }[],
        ];
        points?: { models: number; cost: number; [k: string]: unknown }[];
        points_provisional?: boolean;
        keywords?: KeywordList;
        faction_keywords?: KeywordList;
        base_size_mm?: BaseSize | null;
        model_count?: { min: number; max: number; [k: string]: unknown };
        weapon_ids?: string[];
        ability_ids?: string[];
        transport_capacity?:
            | {
                capacity: number;
                keyword_restrictions?: KeywordList
                | null;
                exclusion_keywords?: KeywordList | null;
            }
            | null;
        game_version: GameVersionReference;
        is_legend?: boolean;
    }
    Index

    Properties

    id: string
    name: string
    faction_id: string
    role?:
        | "character"
        | "battleline"
        | "dedicated-transport"
        | "fortification"
        | "allied"
        | "epic-hero"

    Battlefield role from the datasheet header. Unit types (Infantry, Vehicle, etc.) belong in keywords.

    attachment_role?: "leader" | "support" | null

    Character attachment role (11e). 'support' implies the unit is only legal when attached to a host unit (cannot be taken solo); 'leader' is valid as a standalone list entry. null/absent for non-attaching units.

    profiles: [
        {
            name?: string;
            M: StatValue;
            T: number;
            W: number;
            Sv: number;
            invuln_sv?: number
            | null;
            Ld: number;
            OC: number;
            [k: string]: unknown;
        },
        ...{
            name?: string;
            M: StatValue;
            T: number;
            W: number;
            Sv: number;
            invuln_sv?: number
            | null;
            Ld: number;
            OC: number;
            [k: string]: unknown;
        }[],
    ]

    1

    points?: { models: number; cost: number; [k: string]: unknown }[]
    points_provisional?: boolean

    True when point costs are carried over provisionally (e.g. seeded from a prior edition during migration) and not yet confirmed against the current dataslate.

    keywords?: KeywordList
    faction_keywords?: KeywordList
    base_size_mm?: BaseSize | null

    The unit's representative base (the most-numerous model's base). Mixed-model units carry the full per-model breakdown in unit-composition; this top-level value is a convenience for consumers that need a single base.

    model_count?: { min: number; max: number; [k: string]: unknown }
    weapon_ids?: string[]
    ability_ids?: string[]
    transport_capacity?:
        | {
            capacity: number;
            keyword_restrictions?: KeywordList
            | null;
            exclusion_keywords?: KeywordList | null;
        }
        | null
    game_version: GameVersionReference
    is_legend?: boolean