mwg API
    Preparing search index...

    Interface AffixDef

    interface AffixDef {
        curse?: boolean;
        description?: string;
        id: string;
        kinds?: readonly string[];
        trigger: AffixTrigger;
        weight: number;
    }
    Index
    curse?: boolean

    a curse locks the item (see EquipmentSlots' lock option) once identified

    description?: string

    shown in an item description; mwg never reads this itself

    id: string
    kinds?: readonly string[]

    restricts this affix to specific attack kinds within its trigger (a "bow only" affix on a strike trigger); omitted, the affix fires for any kind, the same as before this existed

    trigger: AffixTrigger
    weight: number

    relative likelihood within its own table; 0 never rolls