mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-06 21:50:00 +00:00
core: remove leftover semicolons
This commit is contained in:
+7
-7
@@ -8,7 +8,7 @@ pfUI:RegisterModule("roll", "vanilla:tbc", function ()
|
||||
local LOOT_ROLL_PASSED = string.gsub(LOOT_ROLL_PASSED, "%%s|Hitem:%%d:%%d:%%d:%%d|h%[%%s%]|h%%s", "%%s")
|
||||
|
||||
-- try to detect the everyone string
|
||||
local _, _, everyone, _ = strfind(LOOT_ROLL_ALL_PASSED, LOOT_ROLL_PASSED);
|
||||
local _, _, everyone, _ = strfind(LOOT_ROLL_ALL_PASSED, LOOT_ROLL_PASSED)
|
||||
pfUI.roll.blacklist = { YOU, everyone }
|
||||
|
||||
pfUI.roll.cache = {}
|
||||
@@ -16,19 +16,19 @@ pfUI:RegisterModule("roll", "vanilla:tbc", function ()
|
||||
pfUI.roll.scan = CreateFrame("Frame", "pfLootRollMonitor", UIParent)
|
||||
pfUI.roll.scan:RegisterEvent("CHAT_MSG_LOOT")
|
||||
pfUI.roll.scan:SetScript("OnEvent", function()
|
||||
local player, item = cmatch(arg1, LOOT_ROLL_GREED);
|
||||
local player, item = cmatch(arg1, LOOT_ROLL_GREED)
|
||||
if player and item then
|
||||
pfUI.roll:AddCache(item, player, "GREED")
|
||||
return
|
||||
end
|
||||
|
||||
local player, item = cmatch(arg1, LOOT_ROLL_NEED);
|
||||
local player, item = cmatch(arg1, LOOT_ROLL_NEED)
|
||||
if player and item then
|
||||
pfUI.roll:AddCache(item, player, "NEED")
|
||||
return
|
||||
end
|
||||
|
||||
local player, item = cmatch(arg1, LOOT_ROLL_PASSED);
|
||||
local player, item = cmatch(arg1, LOOT_ROLL_PASSED)
|
||||
if player and item then
|
||||
pfUI.roll:AddCache(item, player, "PASS")
|
||||
return
|
||||
@@ -41,7 +41,7 @@ pfUI:RegisterModule("roll", "vanilla:tbc", function ()
|
||||
if name == invalid then return end
|
||||
end
|
||||
|
||||
local _, _, itemLink = string.find(hyperlink, "(item:%d+:%d+:%d+:%d+)");
|
||||
local _, _, itemLink = string.find(hyperlink, "(item:%d+:%d+:%d+:%d+)")
|
||||
local itemName = GetItemInfo(itemLink)
|
||||
|
||||
-- delete obsolete tables
|
||||
@@ -110,7 +110,7 @@ pfUI:RegisterModule("roll", "vanilla:tbc", function ()
|
||||
DressUpItemLink(GetLootRollItemLink(this:GetParent().rollID))
|
||||
elseif IsShiftKeyDown() then
|
||||
if ChatFrameEditBox:IsVisible() then
|
||||
ChatFrameEditBox:Insert(GetLootRollItemLink(this:GetParent().rollID));
|
||||
ChatFrameEditBox:Insert(GetLootRollItemLink(this:GetParent().rollID))
|
||||
end
|
||||
end
|
||||
end)
|
||||
@@ -271,7 +271,7 @@ pfUI:RegisterModule("roll", "vanilla:tbc", function ()
|
||||
end
|
||||
|
||||
function pfUI.roll:UpdateLootRoll(id)
|
||||
local texture, name, count, quality, bop = GetLootRollItemInfo(pfUI.roll.frames[id].rollID);
|
||||
local texture, name, count, quality, bop = GetLootRollItemInfo(pfUI.roll.frames[id].rollID)
|
||||
local color = ITEM_QUALITY_COLORS[quality]
|
||||
|
||||
pfUI.roll.frames[id].itemname = name
|
||||
|
||||
Reference in New Issue
Block a user