LibCraftLevels

460 Downloads

LibCraftLevels is a library containing the levels related to a craft.

Namely:

- Levels at which a craft is orange / yellow / green / grey
- Level at which a craft is learned

Encoding:

Information is encoded into a single lua number, and is extracted through bitwise operations.
If you wish to correct information about a given spell, edit the file manualFixes.lua, and follow the instructions.

Usage:

local LCL = LibStub("LibCraftLevels-1.0")
local orange, yellow, green, grey = LCL:GetCraftLevels(spellID)

API

Get the craft levels of a given spellID

function lib:GetCraftLevels(spellID)

Get the level at which a craft is learned

function lib:GetCraftLearnedAtLevel(spellID)

Sets the craft levels of a given spellID

function lib:SetCraftLevels(spellID, learnedAt, orange, yellow, green, grey)