Change line endings, codingstyle
This commit is contained in:
@ -50,20 +50,38 @@ local function ColorConvertHexToDigit(h)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function GetItemInfoFromLink(l)
|
local function GetItemInfoFromLink(l)
|
||||||
if (not l) then return end
|
if (not l) then
|
||||||
local _, _, c, id ,il, n=strfind(l, "|cff(%x+)|Hitem:(%-?%d+)([^|]+)|h%[(.-)%]|h|r")
|
return
|
||||||
|
end
|
||||||
|
local _, _, c, id ,il, n = strfind(l, "|cff(%x+)|Hitem:(%-?%d+)([^|]+)|h%[(.-)%]|h|r")
|
||||||
return n, c, id .. il, id
|
return n, c, id .. il, id
|
||||||
end
|
end
|
||||||
|
|
||||||
local function IsSpecialtyBag(itype, isubtype)
|
local function IsSpecialtyBag(itype, isubtype)
|
||||||
if (strlower(itype or "") == strlower(L["ACEG_TEXT_AMMO"])) then return 1 end
|
if (strlower(itype or "") == strlower(L["ACEG_TEXT_AMMO"])) then
|
||||||
if (strlower(itype or "") == strlower(L["ACEG_TEXT_QUIVER"])) then return 2 end
|
return 1
|
||||||
if (strlower(isubtype or "") == strlower(L["ACEG_TEXT_SOUL"])) then return 3 end
|
end
|
||||||
if (strlower(isubtype or "") == strlower(L["ACEG_TEXT_ENCHANT"])) then return 4 end
|
if (strlower(itype or "") == strlower(L["ACEG_TEXT_QUIVER"])) then
|
||||||
if (strlower(isubtype or "") == strlower(L["ACEG_TEXT_ENGINEER"])) then return 5 end
|
return 2
|
||||||
if (strlower(isubtype or "") == strlower(L["ACEG_TEXT_HERB"])) then return 6 end
|
end
|
||||||
if (strlower(isubtype or "") == strlower(L["ACEG_TEXT_GEM"])) then return 7 end
|
if (strlower(isubtype or "") == strlower(L["ACEG_TEXT_SOUL"])) then
|
||||||
if (strlower(isubtype or "") == strlower(L["ACEG_TEXT_MINING"])) then return 8 end
|
return 3
|
||||||
|
end
|
||||||
|
if (strlower(isubtype or "") == strlower(L["ACEG_TEXT_ENCHANT"])) then
|
||||||
|
return 4
|
||||||
|
end
|
||||||
|
if (strlower(isubtype or "") == strlower(L["ACEG_TEXT_ENGINEER"])) then
|
||||||
|
return 5
|
||||||
|
end
|
||||||
|
if (strlower(isubtype or "") == strlower(L["ACEG_TEXT_HERB"])) then
|
||||||
|
return 6
|
||||||
|
end
|
||||||
|
if (strlower(isubtype or "") == strlower(L["ACEG_TEXT_GEM"])) then
|
||||||
|
return 7
|
||||||
|
end
|
||||||
|
if (strlower(isubtype or "") == strlower(L["ACEG_TEXT_MINING"])) then
|
||||||
|
return 8
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function IsSpecialtyBagFromLink(b)
|
local function IsSpecialtyBagFromLink(b)
|
||||||
|
|||||||
Reference in New Issue
Block a user