Skip to content

Commit

Permalink
Removed the module call for ItemDatabase.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidan committed Jan 12, 2023
1 parent 3f42c74 commit af7ad56
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/ItemDatabase.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ local UNKNOWN = _G.UNKNOWN

local addonName, addon = ...

addon.ItemDatabase = addon:NewModule("ItemDatabase", "AceEvent-3.0")
local db = addon.ItemDatabase
local ItemDatabase = {}

function db:ReagentData(slotData)
function ItemDatabase:ReagentData(slotData)
if not slotData.isCraftingReagent then return false end
if not slotData.classID == TRADE_GOODS then return false end
return {
expacName = addon.EXPANSION_MAP[slotData.expacID],
subclassName = addon.TRADESKILL_MAP[slotData.subclassID] or UNKNOWN,
}
end

addon.ItemDatabase = ItemDatabase

0 comments on commit af7ad56

Please sign in to comment.