From 328ab5f0155e1aba66a8b04ecbe76364e4f0dba1 Mon Sep 17 00:00:00 2001 From: Aleksi Blinnikka Date: Sun, 6 May 2018 04:45:20 +0300 Subject: [PATCH] Autolog all dungeons during beta --- OmaLog/Logging.lua | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/OmaLog/Logging.lua b/OmaLog/Logging.lua index f8c2ec8..2596879 100644 --- a/OmaLog/Logging.lua +++ b/OmaLog/Logging.lua @@ -10,7 +10,18 @@ frame:Hide(); local raidIDs = { [1861] = "Uldir", }; ---local minDungMapID = 1456; +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(); @@ -25,10 +36,12 @@ 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; + elseif difficulty == 1 or difficulty == 2 then + return true; -- TODO remove logging from normal/hc after beta + end end return false; -- 2.39.5