feat: Release v1.3.2 — Taint Resolution & Stability patches
This commit is contained in:
@@ -471,11 +471,8 @@ QuestieComms._yellWaitingQuests = {}
|
||||
QuestieComms._yellQueue = {}
|
||||
QuestieComms._isYelling = false
|
||||
|
||||
local _loadupTime_removeme = GetTime() -- this will be removed in 6.0.1 or 6.1, when we can figure out a proper way to prevent
|
||||
-- yelling quests on login. Not enough time to make and test a proper fix
|
||||
|
||||
function QuestieComms:YellProgress(questId)
|
||||
if Questie.db.profile.disableYellComms or badYellLocations[C_Map.GetBestMapForUnit("player")] or QuestiePlayer.numberOfGroupMembers > 4 or GetTime() - _loadupTime_removeme < 8 then
|
||||
if Questie.db.profile.disableYellComms or badYellLocations[C_Map.GetBestMapForUnit("player")] or QuestiePlayer.numberOfGroupMembers > 4 then
|
||||
return
|
||||
end
|
||||
if not QuestieComms._yellWaitingQuests[questId] then
|
||||
@@ -484,35 +481,11 @@ function QuestieComms:YellProgress(questId)
|
||||
tinsert(QuestieComms._yellQueue, questId)
|
||||
else
|
||||
QuestieComms._isYelling = true
|
||||
C_Timer.After(2, function()
|
||||
_DoYell(questId)
|
||||
end)
|
||||
-- Yell progress feature is currently disabled
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
_DoYell = function(questId)
|
||||
--[[local data = {}
|
||||
local _, count = QuestieComms:PopulateQuestDataPacketV2(questId, data, 1)
|
||||
if count > 0 then -- dont send quests with no objectives
|
||||
local packet = _QuestieComms:CreatePacket(_QuestieComms.QC_ID_YELL_PROGRESS);
|
||||
packet.data[1] = data;
|
||||
packet.data.priority = "BULK"
|
||||
packet.data.writeMode = _QuestieComms.QC_WRITE_YELL
|
||||
|
||||
packet:write();
|
||||
QuestieComms._yellWaitingQuests[questId] = nil
|
||||
end
|
||||
local nextQuest = tremove(QuestieComms._yellQueue, 1)
|
||||
if nextQuest then
|
||||
C_Timer.After(2, function()
|
||||
_DoYell(nextQuest)
|
||||
end)
|
||||
else
|
||||
QuestieComms._isYelling = false
|
||||
end]]
|
||||
end
|
||||
|
||||
_QuestieComms._isBroadcasting = false
|
||||
_QuestieComms._needsNewBroadcast = false
|
||||
_QuestieComms._nextBroadcastData = {}
|
||||
|
||||
@@ -93,29 +93,17 @@ function QuestieComms.data:RegisterTooltip(questId, playerName, objectives)
|
||||
--Questie:Debug(Questie.DEBUG_DEVELOP, "Adding tooltip lookup", lookupKey, questId, playerName);
|
||||
if(objective.type == "i") then
|
||||
local item = QuestieDB:GetItem(objective.id);
|
||||
if not item or item.Hidden then
|
||||
return
|
||||
end
|
||||
for index, source in pairs(item.Sources or {}) do
|
||||
local sourceType = string.sub(source.Type, 1, 1);
|
||||
local sourceId = source.Id;
|
||||
local sourceLookupKey = sourceType.."_"..sourceId;
|
||||
QuestieComms.data:AddTooltip(playerName, questId, sourceLookupKey, objectiveIndex, objective);
|
||||
if item and not item.Hidden then
|
||||
for index, source in pairs(item.Sources or {}) do
|
||||
local sourceType = string.sub(source.Type, 1, 1);
|
||||
local sourceId = source.Id;
|
||||
local sourceLookupKey = sourceType.."_"..sourceId;
|
||||
QuestieComms.data:AddTooltip(playerName, questId, sourceLookupKey, objectiveIndex, objective);
|
||||
end
|
||||
end
|
||||
else
|
||||
QuestieComms.data:AddTooltip(playerName, questId, lookupKey, objectiveIndex, objective);
|
||||
end
|
||||
--[[if(not commsTooltipLookup[lookupKey]) then
|
||||
commsTooltipLookup[lookupKey] = {}
|
||||
end
|
||||
if(not commsTooltipLookup[lookupKey][playerName]) then
|
||||
commsTooltipLookup[lookupKey][playerName] = {};
|
||||
end
|
||||
if(not commsTooltipLookup[lookupKey][playerName][questId]) then
|
||||
commsTooltipLookup[lookupKey][playerName][questId] = {};
|
||||
end
|
||||
commsTooltipLookup[lookupKey][playerName][questId][objectiveIndex] = objective;
|
||||
|
||||
playerRegisteredTooltips[playerName][questId][lookupKey] = true;]]--
|
||||
QuestieComms.data:AddTooltip(playerName, questId, lookupKey, objectiveIndex, objective);
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user