Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:GetCurrentEnhancementItemData

From RoR Wiki

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