Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Urtgard committed Oct 27, 2024
2 parents fa313b0 + 0f37281 commit 1ed688f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions Achievements.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ function WQA.Achievements:Register_MISSION_TABLE(achievement, index, criteriaQue

if achievement.criteria and achievement.criteria[index] then
if type(achievement.criteria[index]) == "table" then
for _, questId in pairs(achievement.criteria[index]) do
WQA:AddRewardToMission(questId, "ACHIEVEMENT", id)
for _, questID in pairs(achievement.criteria[index]) do
WQA:AddRewardToMission(questID, "ACHIEVEMENT", id)
end
else
local questId = achievement.criteria[index]
if questId then
WQA:AddRewardToMission(questId, "ACHIEVEMENT", id)
local questID = achievement.criteria[index]
if questID then
WQA:AddRewardToMission(questID, "ACHIEVEMENT", id)
end
end
else
Expand Down
4 changes: 2 additions & 2 deletions Options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,8 @@ function WQA:UpdateOptions()
end,
disabled = function()
local mapId = self.data.custom.mapID
local questId = self.data.custom.wqID
return (questId == nil or questId == "") or
local questID = self.data.custom.wqID
return (questID == nil or questID == "") or
(self.data.custom.questType == "QUEST_PIN" and (mapId == nil or mapId == ""))
end
},
Expand Down
10 changes: 5 additions & 5 deletions WQAchievements.lua
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ function WQA:OnEnable()
for i = 1, #self.ZoneIDList do
for _, mapID in pairs(self.ZoneIDList[i]) do
if self.db.profile.options.zone[mapID] == true then
local quests = C_TaskQuest.GetQuestsForPlayerByMapID(mapID)
local quests = C_TaskQuest.GetQuestsOnMap(mapID)
if quests then
for j = 1, #quests do
local questID = quests[j].questId
local questID = quests[j].questID
local numQuestRewards = GetNumQuestLogRewards(questID)
if numQuestRewards > 0 then
GetQuestLogRewardInfo(1, questID)
Expand Down Expand Up @@ -929,10 +929,10 @@ function WQA:Reward()
for i in pairs(self.ZoneIDList) do
for _, mapID in pairs(self.ZoneIDList[i]) do
if self.db.profile.options.zone[mapID] == true then
local quests = C_TaskQuest.GetQuestsForPlayerByMapID(mapID)
local quests = C_TaskQuest.GetQuestsOnMap(mapID)
if quests then
for i = 1, #quests do
local questID = quests[i].questId
local questID = quests[i].questID
local questTagInfo = GetQuestTagInfo(questID)
local worldQuestType = 0
if questTagInfo then
Expand Down Expand Up @@ -1570,7 +1570,7 @@ function WQA:GetRewardLinkByMissionID(missionID, key, value, i)
return self:GetRewardLinkByID(missionID, key, value, i)
end

function WQA:GetRewardLinkByID(questId, key, value, i)
function WQA:GetRewardLinkByID(questID, key, value, i)
local k, v = key, value
local link = nil
if k == "achievement" then
Expand Down

0 comments on commit 1ed688f

Please sign in to comment.