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

    Class WeaponView

    A weapon, linked to the units that carry it.

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    raw: Weapon

    The full generated Weapon record.

    Accessors

    Methods

    • The stat profile at index i (default 0).

      Parameters

      • i: number = 0

      Returns
          | {
              name: string;
              range?: number
              | "Melee";
              stats: {
                  A: StatValue;
                  BS?: number | null;
                  WS?: number | null;
                  S: StatValue;
                  AP: number;
                  D: StatValue;
                  [k: string]: unknown;
              };
              keywords?: {
                  keyword_id: string;
                  parameters?: {
                      value?: StatValue;
                      target_keyword?: string;
                      threshold?: number;
                  };
              }[];
          }
          | {
              name: string;
              range?: number
              | "Melee";
              stats: {
                  A: StatValue;
                  BS?: number | null;
                  WS?: number | null;
                  S: StatValue;
                  AP: number;
                  D: StatValue;
                  [k: string]: unknown;
              };
              keywords?: {
                  keyword_id: string;
                  parameters?: {
                      value?: StatValue;
                      target_keyword?: string;
                      threshold?: number;
                  };
              }[];
          }

      • {
            name: string;
            range?: number | "Melee";
            stats: {
                A: StatValue;
                BS?: number | null;
                WS?: number | null;
                S: StatValue;
                AP: number;
                D: StatValue;
                [k: string]: unknown;
            };
            keywords?: {
                keyword_id: string;
                parameters?: {
                    value?: StatValue;
                    target_keyword?: string;
                    threshold?: number;
                };
            }[];
        }
        • name: string
        • Optionalrange?: number | "Melee"
        • stats: {
              A: StatValue;
              BS?: number | null;
              WS?: number | null;
              S: StatValue;
              AP: number;
              D: StatValue;
              [k: string]: unknown;
          }
        • Optionalkeywords?: {
              keyword_id: string;
              parameters?: {
                  value?: StatValue;
                  target_keyword?: string;
                  threshold?: number;
              };
          }[]

          References into the weapon-keyword catalog. Each entry names the catalog id and supplies parameter values (e.g. Sustained Hits 1{keyword_id: 'sustained-hits', parameters: {value: 1}}).

      • {
            name: string;
            range?: number | "Melee";
            stats: {
                A: StatValue;
                BS?: number | null;
                WS?: number | null;
                S: StatValue;
                AP: number;
                D: StatValue;
                [k: string]: unknown;
            };
            keywords?: {
                keyword_id: string;
                parameters?: {
                    value?: StatValue;
                    target_keyword?: string;
                    threshold?: number;
                };
            }[];
        }
        • name: string
        • Optionalrange?: number | "Melee"
        • stats: {
              A: StatValue;
              BS?: number | null;
              WS?: number | null;
              S: StatValue;
              AP: number;
              D: StatValue;
              [k: string]: unknown;
          }
        • Optionalkeywords?: {
              keyword_id: string;
              parameters?: {
                  value?: StatValue;
                  target_keyword?: string;
                  threshold?: number;
              };
          }[]

          References into the weapon-keyword catalog. Each entry names the catalog id and supplies parameter values (e.g. Sustained Hits 1{keyword_id: 'sustained-hits', parameters: {value: 1}}).

    • Catalog views for each keyword referenced by profile i, paired with the reference-site parameters. Unresolved keyword ids are skipped.

      Parameters

      • i: number = 0

      Returns { keyword: WeaponKeywordView; parameters: Record<string, unknown> | undefined }[]

    • Buffs contributed by profile i's intrinsic keywords against context — the natural "what does this profile bring on its own?" call the engine makes automatically before adding ability/manual buffs.

      Parameters

      Returns Buff[]