Initial commit
This commit is contained in:
		
							
								
								
									
										8
									
								
								api/GetItemStatDelta.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								api/GetItemStatDelta.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
---@diagnostic disable: missing-return, lowercase-global
 | 
			
		||||
 | 
			
		||||
---@param item1Link string 
 | 
			
		||||
---@param item2Link string 
 | 
			
		||||
---@param returnTable table 
 | 
			
		||||
---@return table statTable 
 | 
			
		||||
---Returns a summary of the difference in stat bonuses between two items. 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 GetItemStatDelta(item1Link, item2Link, returnTable) end
 | 
			
		||||
		Reference in New Issue
	
	Block a user