Skip to content

Commit 9793033

Browse files
committed
Update Prey NPCs to S2
- Also show important quest icon on the Hun Table map pin, if the player in on the S2 intro quest "Prey: A Slithering Threat"
1 parent 6269b44 commit 9793033

3 files changed

Lines changed: 42 additions & 11 deletions

File tree

Art/MapPin/PreyQuestDifficulty.png

2.19 KB
Loading

Modules/HuntTable.lua

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ local MODULE_ENABLED = false;
77

88
local PreyTargetListAchivements = {42701, 42702, 42703};
99

10+
local PreyQuestXAchievement = {
11+
-- New prey target that isn't on the original target list
12+
[95021] = 63452, -- Janoa the Fang
13+
[95022] = 63452, -- Kursak the Coiled
14+
[95023] = 63451, -- Batani the Scaled
15+
[95024] = 63451, -- Kadani the Claw
16+
};
17+
18+
local S2_INTRO_QUEST_ID = 96004;
19+
1020
local PreyQuestData = addon.PreyQuestData;
1121

1222
local Def = {
@@ -35,22 +45,36 @@ local function SetupPin(pin)
3545

3646
if questID and PreyQuestData[questID] then
3747
local difficulty, criteriaID = PreyQuestData[questID][1], PreyQuestData[questID][2];
38-
local _, _, completed = GetAchievementCriteriaInfoByID(PreyTargetListAchivements[difficulty], criteriaID);
48+
local achievementID = PreyQuestXAchievement[questID] or PreyTargetListAchivements[difficulty];
49+
local _, completed;
50+
if achievementID then
51+
_, _, completed = GetAchievementCriteriaInfoByID(achievementID, criteriaID);
52+
end
3953

4054
local l, r, t, b;
4155

42-
if completed == nil or completed then
43-
t, b = 0, 0.25;
44-
else
45-
t, b = 0.25, 0.5;
56+
if PreyQuestXAchievement[questID] then
57+
if C_QuestLog.IsOnQuest(S2_INTRO_QUEST_ID) and not C_QuestLog.ReadyForTurnIn(S2_INTRO_QUEST_ID) then
58+
-- Display Important Quest Icon for these targets
59+
t, b = 0.25, 0.5;
60+
l, r = 0.75, 1;
61+
end
4662
end
4763

48-
if difficulty == 1 then
49-
l, r = 0, 0.25;
50-
elseif difficulty == 2 then
51-
l, r = 0.25, 0.5;
52-
else
53-
l, r = 0.5, 0.75;
64+
if not t then
65+
if completed == nil or completed then
66+
t, b = 0, 0.25;
67+
else
68+
t, b = 0.25, 0.5;
69+
end
70+
71+
if difficulty == 1 then
72+
l, r = 0, 0.25;
73+
elseif difficulty == 2 then
74+
l, r = 0.25, 0.5;
75+
else
76+
l, r = 0.5, 0.75;
77+
end
5478
end
5579

5680
SetupIcon(pin, "SetTexture", Def.DifficultyIcon);

Modules/Shared/SharedData.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,13 @@ end
246246
--]]
247247

248248
addon.PreyQuestData = { --[questID] = {difficulty, criteriaID};
249+
-- 12.1.0 --
250+
[95021] = {3, 115704}, -- Janoa the Fang
251+
[95022] = {3, 115705}, -- Kursak the Coiled
252+
[95023] = {3, 115706}, -- Batani the Scaled
253+
[95024] = {3, 115707}, -- Kadani the Claw
254+
255+
-- Pre 12.1.0 --
249256
[91098] = {
250257
1,
251258
105915,

0 commit comments

Comments
 (0)