Skip to content

Instantly share code, notes, and snippets.

@wizjany
Created August 22, 2018 03:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wizjany/26791988d89f8b14509c0342ef110ed3 to your computer and use it in GitHub Desktop.
Save wizjany/26791988d89f8b14509c0342ef110ed3 to your computer and use it in GitHub Desktop.
--- SorhaQuestLog/Modules/Quests.lua 2018-07-20 05:26:24.000000000 -0400
+++ SorhaQuestLog/Modules/Quests.lua.bfa 2018-08-21 23:37:54.133044400 -0400
@@ -53,6 +53,8 @@
local bonusObjectivesZoneID = 'Bonus Objectives';
local worldQuestsZoneTitle = TRACKER_HEADER_WORLD_QUESTS;
local worldQuestsZoneID = 'World Quests';
+local warCampaignZoneTitle = WAR_CAMPAIGN;
+local warCampaignZoneID = 'War Campaign';
--player info
local playerMoney = 0;
@@ -2568,6 +2570,28 @@
local isInArea, isOnMap, numObjectives, taskName, displayAsObjective = GetTaskInfo(self.ID);
local tagID, tagName, worldQuestType, rarity, isElite, tradeskillLineIndex = GetQuestTagInfo(self.ID);
+ local zoneID = C_TaskQuest.GetQuestZoneID(self.ID);
+ local zoneIDsToLevel = {
+ [650] = 110, -- Highmountain
+ [634] = 110, -- Stormheim
+ [680] = 110, -- Suramar
+ [630] = 110, -- Azsuna
+ [641] = 110, -- Val'sharah
+ [627] = 110, -- Dalaran
+ [790] = 110, -- Eye of Azshara
+ [646] = 110, -- Broken Shore
+ [882] = 110, -- Mac'Aree
+ [830] = 110, -- Krokun
+ [885] = 110, -- Antoran Wastes
+ [942] = 120, -- Stormsong Valley
+ [895] = 120, -- Tiragarde Sound
+ [1161] = 120, -- Boralus
+ [896] = 120, -- Drustvar
+ [864] = 120, -- Vol'dun
+ [863] = 120, -- Nazmir
+ [862] = 120, -- Zuldazar
+ [1165] = 120, -- Dazar'alor
+ }
self.TagID = tagID;
if (isElite) then
self.TagID = ELITE
@@ -2584,7 +2608,7 @@
self.RequiredMoney = 0;
self.ObjectiveDescription = "";
- self.Level = 110;
+ self.Level = zoneIDsToLevel[zoneID] or 120;
self.SuggestedGroup = 0;
self.Frequency = frequency;
@@ -3309,6 +3333,7 @@
self.ZoneList[bonusObjectivesZoneID] = SQLZone:new(0, true, bonusObjectivesZoneID, bonusObjectivesZoneTitle);
self.ZoneList[worldQuestsZoneID] = SQLZone:new(100, true, worldQuestsZoneID, worldQuestsZoneTitle);
+ self.ZoneList[warCampaignZoneID] = SQLZone:new(101, true, warCampaignZoneID, warCampaignZoneTitle);
self.Changed = false;
self:Update();
@@ -3416,6 +3441,8 @@
else
if (self.ZoneList[zoneID] ~= nil) then
self.ZoneList[zoneID]:AddQuest(self.QuestList[questID]);
else
+ self.ZoneList[warCampaignZoneID]:AddQuest(self.QuestList[questID]);
end
end
end
@@ -3466,6 +3493,11 @@
else
self.ZoneList[worldQuestsZoneID].IsCollapsed = false;
end
+ if (dbChar.ZoneIsCollapsed[warCampaignZoneID] == true) then
+ self.ZoneList[warCampaignZoneID].IsCollapsed = true;
+ else
+ self.ZoneList[warCampaignZoneID].IsCollapsed = false;
+ end
self.HiddenQuestCount = 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment