mwg API
    Preparing search index...

    Function enchant

    • Raises (or, given a negative delta, lowers) an item's enchantment/upgrade level.

      Parameters

      • item: InventoryItem
      • delta: number
      • affixPolicy: AffixUpgradePolicy = 'keep'

        'keep' (the default, and the only behaviour before this option existed) leaves whatever affix the item carries untouched; 'remove' strips it - some upgrade paths only preserve an enchantment past a certain rarity tier, a game's own rule this only ever applies when asked to

      Returns number