C_ItemUpgrade.GetItemUpgradeEffect

From Warcraft Wiki
Jump to navigation Jump to search
GitHub Octocat.png  Townlong-Yak BAD.png  ProfIcons engineering.png  BTNTemp.png C_ItemUpgrade.GetItemUpgradeEffect TheWarWithin-Icon-Inline.pngDragonflight-Icon-Inline.png + 9.1.0
BTNTemp.png GetItemUpgradeEffect + 5.3.0

Returns the effect of upgrading an item on one of its effects.

outBaseEffect, outUpgradedEffect = C_ItemUpgrade.GetItemUpgradeEffect(effectIndex [, numUpgradeLevels])

Arguments

effectIndex
number - Index of the effect to query, ascending from 1 to C_ItemUpgrade.GetNumItemUpgradeEffects()
numUpgradeLevels
number?

Returns

outBaseEffect
string - effect text before the item upgrade (e.g. "When your attacks hit you have a chance to gain 3,386 critical strike for 30 sec.")
outUpgradedEffect
string - effect text after the item upgrade (e.g. "When your attacks hit you have a chance to gain 3,649 critical strike for 30 sec.")

Details

  • The function returns information about the item currently being considered for an upgrade (e.g. using SetItemUpgradeFromCursorItem).
  • Item effects are non-stat bonuses on the item, like custom Equip: bonuses (procs) and Use: abilities.
  • The strings returned by this function are plain text; FrameXML attempts to highlight the differences in numbers using string operations (see ItemUpgradeFrame_GetUpgradedEffectString)

Patch changes

Shadowlands Patch 9.1.0 (2021-06-29): Added.

See also

  • GetItemUpgradeStats