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

    Interface WargearOption

    A wargear option available to models within a unit: a weapon/wargear swap, a pure add-on, or a choice between alternatives. Models start with the unit's base loadout; an option modifies that loadout for the number of models its model_constraint permits.

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

    interface WargearOption {
        id: string;
        unit_id: string;
        model_constraint?:
            | {
                model_name?: string;
                per_n_models?: number;
                max_count?: number;
                any_number?: boolean;
            }
            | null;
        replaces?: [string, ...string[]];
        replacement?: [string, ...string[]];
        replacement_choice?: [
            [string, ...string[]],
            [string, ...string[]],
            ...[string, ...string[]][],
        ];
        is_free?: boolean;
        additional_cost?: number | null;
        game_version: GameVersionReference;
    }
    Index

    Properties

    id: string
    unit_id: string
    model_constraint?:
        | {
            model_name?: string;
            per_n_models?: number;
            max_count?: number;
            any_number?: boolean;
        }
        | null

    Type Declaration

    • {
          model_name?: string;
          per_n_models?: number;
          max_count?: number;
          any_number?: boolean;
      }
      • Optionalmodel_name?: string
      • Optionalper_n_models?: number
      • Optionalmax_count?: number
      • Optionalany_number?: boolean

        When true, every model in the unit may take the option ('Any number of models can each ...'). Mutually exclusive in spirit with per_n_models.

    • null
    replaces?: [string, ...string[]]

    Weapon or wargear IDs removed from the model. Omit for a pure add-on (the option only equips new wargear).

    1

    replacement?: [string, ...string[]]

    Weapon or wargear IDs added to the model — all of them. Exactly one of replacement / replacement_choice is present.

    1

    replacement_choice?: [
        [string, ...string[]],
        [string, ...string[]],
        ...[string, ...string[]][],
    ]

    A choice of replacements ('one of the following'): pick exactly one inner group; each group's IDs are all added together. Exactly one of replacement / replacement_choice is present.

    2

    is_free?: boolean
    additional_cost?: number | null
    game_version: GameVersionReference