-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a reference folder for functions.
Split up the Enchanting functions into a separate file. TODO: Split up the smithing and also add files for alchemy and provisioning.
- Loading branch information
Showing
3 changed files
with
476 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
local LibLazyCrafting = LibStub("LibLazyCrafting") | ||
d("hh") | ||
abcdefg = "123" | ||
|
||
-- Since bag indexes can change, this ignores those. Instead, it takes in the name, or the index (table of indexes is found in table above, and is specific to this library) | ||
-- Bag indexes will be determined at time of crafting | ||
local function LLC_CraftEnchantingGlyphItemID(self, potencyItemID, essenceItemID, aspectItemID, autocraft) | ||
if not self then d("Please call with colon notation") end | ||
if autocraft==nil then autocraft = self.autocraft end | ||
if not potencyItemID or not essenceItemID or not aspectItemID then return end | ||
table.insert(craftingQueue[self.addonName][CRAFTING_TYPE_ENCHANTING], | ||
{ | ||
["potencyItemID"] = potencyItemID, | ||
["essenceItemID"] = essenceItemID, | ||
["aspectItemID"] = aspectItemID, | ||
["timestamp"] = GetTimeStamp(), | ||
["autocraft"] = autocraft, | ||
["Requester"] = self.addonName, | ||
} | ||
) | ||
sortCraftQueue() | ||
end | ||
|
||
local function LLC_CraftEnchantingGlyph(self, potencyBagId, potencySlot, essenceBagId, essenceSlot, aspectBagId, aspectSlot) | ||
LLC_CraftEnchantingGlyphItemID(self, GetItemId(potencyBagId, potencySlot),GetItemId(essenceBagId, essenceSlot),GetItemId(aspectBagId,aspectSlot)) | ||
end | ||
|
||
|
||
LibLazyCrafting.functionTable.CraftEnchantingItemId = LLC_CraftEnchantingGlyphItemID | ||
LibLazyCrafting.functionTable.CraftEnchantingGlyph = LLC_CraftEnchantingGlyph |
Oops, something went wrong.