Mercurial > wow > wowdb-profiler
comparison Main.lua @ 487:b661f10e04d9
Fixed an issue where world quests could record the rewards as being only honor, which is actually currently impossible.
author | MMOSimca <mmosimca@gmail.com> |
---|---|
date | Wed, 14 Sep 2016 05:49:50 -0400 |
parents | 5e5ddb69f845 |
children | 95e0a5b04d52 |
comparison
equal
deleted
inserted
replaced
486:9ee860036010 | 487:b661f10e04d9 |
---|---|
938 -- Record data for a specific quest ID; reward data must be available or nothing will be recorded | 938 -- Record data for a specific quest ID; reward data must be available or nothing will be recorded |
939 -- When we reach this point, we've already checked for a valid mapID, questID, quest data, and worldQuestType | 939 -- When we reach this point, we've already checked for a valid mapID, questID, quest data, and worldQuestType |
940 local function RecordWorldQuestData(world_map_id, quest_id, api_data_table) | 940 local function RecordWorldQuestData(world_map_id, quest_id, api_data_table) |
941 | 941 |
942 -- Ensure we have location data and rewards (barely readable so putting it on multiple lines) | 942 -- Ensure we have location data and rewards (barely readable so putting it on multiple lines) |
943 -- (Honor is built in to the quest; it is not a sign rewards have been loaded) | |
943 if not api_data_table.x or not api_data_table.y or not api_data_table.floor or not | 944 if not api_data_table.x or not api_data_table.y or not api_data_table.floor or not |
944 (_G.GetQuestLogRewardXP(quest_id) > 0 or _G.GetNumQuestLogRewardCurrencies(quest_id) > 0 | 945 (_G.GetQuestLogRewardXP(quest_id) > 0 or _G.GetNumQuestLogRewardCurrencies(quest_id) > 0 |
945 or _G.GetNumQuestLogRewards(quest_id) > 0 or _G.GetQuestLogRewardMoney(quest_id) > 0 | 946 or _G.GetNumQuestLogRewards(quest_id) > 0 or _G.GetQuestLogRewardMoney(quest_id) > 0 |
946 or _G.GetQuestLogRewardArtifactXP(quest_id) > 0 or _G.GetQuestLogRewardHonor(quest_id) > 0) then | 947 or _G.GetQuestLogRewardArtifactXP(quest_id) > 0) then |
947 return | 948 return |
948 end | 949 end |
949 | 950 |
950 local entry = DBEntry("world_quests", quest_id) | 951 local entry = DBEntry("world_quests", quest_id) |
951 | 952 |