X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/ebee0bd3d0bc041400595f4284d078ed4a0f025a..408e8623845af5410e1c0d29c570dc6f2978fa2b:/OmaLog/Logging.lua diff --git a/OmaLog/Logging.lua b/OmaLog/Logging.lua index 093f456..9a2c13e 100644 --- a/OmaLog/Logging.lua +++ b/OmaLog/Logging.lua @@ -7,12 +7,26 @@ local CTimerAfter = C_Timer.After; local frame = CreateFrame("Frame", "OmaLogger"); frame:Hide(); -local minRaidMapID = 1520; ---local minDungMapID = 1456; +local raidIDs = { + [1861] = "Uldir", +}; +local dungeonIDs = { + [1594] = "The Undermine", + [1754] = "Freehold", + [1762] = "King's Rest", + [1763] = "Atal'Dazar", + [1771] = "Tol Dagor", + [1822] = "Siege of Boralus", + [1841] = "Underrot", + [1862] = "Waycrest Manor", + [1864] = "Shrine of the Storm", + [1877] = "Temple of Sethraliss", +}; local function shouldLog() local _, zoneType, difficulty, _, _, _, _, mapID = GetInstanceInfo(); - if zoneType == "raid" and mapID >= minRaidMapID then + if zoneType == "raid" then print(mapID) end + if zoneType == "raid" and raidIDs[mapID] then if difficulty == 17 then -- LFR return false; elseif difficulty == 16 then -- Mythic @@ -22,10 +36,10 @@ local function shouldLog() elseif difficulty == 14 then -- Normal return true; end - --elseif zoneType == "party" and mapID >= minDungMapID then - -- if difficulty == 8 or difficulty == 23 then - -- return true; - -- end + elseif zoneType == "party" and dungeonIDs[mapID] then + if difficulty == 8 or difficulty == 23 then + return true; + end end return false;