Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:GetCurrentEnhancementItemData

From RoR Wiki
Revision as of 19:43, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UI Lua API · Game functions
Version: WAR 1.4.8

Returns the item that is currently being enhanced (the item in the item enhancement window).

item = GetCurrentEnhancementItemData()

Arguments

None.

Returns

item
table – An item data table. Its enhSlot and numEnhancementSlots fields describe the enhancement slots.

Details

  • If there is no player object, or the Lua state is not available, the function returns nothing.
  • The stock UI calls it whenever the item enhancement window opens, closes or updates.

Errors

None.

Example

From ea_itemenhancementwindow/source/itemenhancementwindow.lua:

function ItemEnhancementWindow.UpdateItem ()

    ItemEnhancementWindow.enhancedItem = GetCurrentEnhancementItemData()
    local enhItem = ItemEnhancementWindow.enhancedItem

    UpdateEnhancementDisplay (enhItem)

See also