This commit is contained in:
Bunny67
2018-07-07 19:29:30 +03:00
parent 7b9ba50490
commit d4ca4e6268
5 changed files with 151 additions and 39 deletions
+18
View File
@@ -26,6 +26,7 @@ local DURABILITY_TEMPLATE = gsub(DURABILITY_TEMPLATE, "%%d / %%d", "(%%d+) / (%%
--Libs
local LBC = LibStub("LibBabble-Class-3.0"):GetLookupTable()
local LBZ = LibStub("LibBabble-Zone-3.0"):GetLookupTable()
local LBBF = LibStub("LibBabble-BagFamily-3.0"):GetLookupTable()
CLASS_SORT_ORDER = {
"WARRIOR",
@@ -265,6 +266,23 @@ function GetMapNameByID(id)
return mapByID[tonumber(id)]
end
local bagTypes = {
[LBBF["Bag"]] = 0,
[LBBF["Quiver"]] = 1,
[LBBF["Ammo Pouch"]] = 2,
[LBBF["Soul Bag"]] = 4,
[LBBF["Leatherworking Bag"]] = 8,
[LBBF["Herb Bag"]] = 16,
[LBBF["Enchanting Bag"]] = 32,
[LBBF["Engineering Bag"]] = 64,
[LBBF["Mining Bag"]] = 128
}
function GetItemFamily(id)
local _, _, _, _, _, itemType = GetItemInfo(id)
return bagTypes[itemType]
end
local arrow
function GetPlayerFacing()
if not arrow then