Initial commit
This commit is contained in:
7
api/GetItemStats.lua
Normal file
7
api/GetItemStats.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
---@diagnostic disable: missing-return, lowercase-global
|
||||
|
||||
---@param itemLink string
|
||||
---@param returnTable table
|
||||
---@return table statTable
|
||||
---Returns a summary of an item's stat bonuses. Keys in the table returned are the names of global variables containing the localized names of the stats (e.g. _G["ITEM_MOD_SPIRIT_SHORT"] = "Spirit", _G["ITEM_MOD_HIT_RATING_SHORT"] = "Hit Rating"). The optional argument returnTable allows for performance optimization in cases where this function is expected to be called repeatedly. Rather than creating new tables each time the function is called (eventually requiring garbage collection), an existing table can be recycled. (Note, however, that this function does not clear the table's contents; use wipe() first to guarantee consistent results.)
|
||||
function GetItemStats(itemLink, returnTable) end
|
||||
Reference in New Issue
Block a user