LibCraftReagents

439 Downloads

LibCraftReagents is a library containing the list of reagents required to craft a given item.

If you wish to correct information about a given spell, edit the file manualFixes.lua, and follow the instructions.

Usage:

local LCR = LibStub("LibCraftReagents-1.0")
local reagents = LCR:GetCraftReagents(spellID)

"reagents" will contain a value like = "1234,1|2345,2" meaning that 1 copy of item 1234 and 2 copies of 2345 are required to craft this item.

API

Get the reagents required for a specific craft

function lib:GetCraftReagents(spellID)

Sets the reagents required for a specific craft

function lib:SetCraftReagents(spellID, reagents)