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

    Function parseKeywordGrant

    • Parse a printed weapon-keyword string (e.g. "Sustained Hits 1", "Anti-INFANTRY 4+", "Lethal Hits") into a {keyword_id, parameters?} catalog reference, or null if the form is unrecognised.

      Reverses the conventions baked into the M0 catalog: kebab-case ids, trailing number → value, embedded keyword + threshold → target_keyword

      • threshold.

      Parameters

      • raw: string

      Returns WeaponKeywordRef | null