-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDisplayData.lua
More file actions
146 lines (129 loc) · 6.22 KB
/
DisplayData.lua
File metadata and controls
146 lines (129 loc) · 6.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
local L = LibStub("AceLocale-3.0"):GetLocale("WarfrontStatus")
local DISPLAY_DATA = nil
function AddWarfrontQuests()
local category = {}
local mapInfo = C_Map.GetMapInfo(14)
category.name = L["Quests"]
category.title = mapInfo.name.." "..category.name
category.columns = { "Quest", "Rewards", "Completed"}
category.items = {
{ type = "quest", name = "Death to The Defiler", questID = 53153, faction = "Alliance", rewards = { { rewardType = item, itemID = 164578} } },
{ type = "quest", name = "The League Will Lose", questID = 53154, faction = "Horde", rewards = { { rewardType = item, itemID = 164578} } },
{ type = "quest", name = "Twice-Exiled", questID = 53192, faction = "Alliance", rewards = { { rewardType = currency, currencyID = 1560, amount = 200} } },
{ type = "quest", name = "Twice-Exiled", questID = 53193, faction = "Horde", rewards = { { rewardType = currency, currencyID = 1560, amount = 200} } },
{ type = "quest", name = "Executing Exorcisms", questID = 53179, faction = "Alliance", rewards = { { rewardType = currency, currencyID = 1553, amount = 300} } },
{ type = "quest", name = "Executing Exorcisms", questID = 53190, faction = "Horde", rewards = { { rewardType = currency, currencyID = 1553, amount = 300} } },
{ type = "quest", name = "Boulderfist Beatdown", questID = 53146, faction = "Alliance", rewards = { { rewardType = currency, currencyID = 1560, amount = 200} } },
{ type = "quest", name = "Boulderfist Beatdown", questID = 53148, faction = "Horde", rewards = { { rewardType = currency, currencyID = 1560, amount = 200} } },
{ type = "quest", name = "Sins of the Syndicate", questID = 53162, faction = "Alliance", rewards = { { rewardType = currency, currencyID = 1560, amount = 200} } },
{ type = "quest", name = "Sins of the Syndicate", questID = 53173, faction = "Horde", rewards = { { rewardType = currency, currencyID = 1560, amount = 200} } },
{ type = "quest", name = "Wiping Out the Witherbark", questID = 53149, faction = "Alliance", rewards = { { rewardType = currency, currencyID = 1560, amount = 200} } },
{ type = "quest", name = "Wiping Out the Witherbark", questID = 53150, faction = "Horde", rewards = { { rewardType = currency, currencyID = 1560, amount = 200} } }
-- rewards = {{ currencyID = 1560, amount = 200 }}, gains = {{ faction = 2157, amount = 75 }, { faction = 2159, amunt = 75 } }
}
DISPLAY_DATA[#DISPLAY_DATA +1] = category
end
function AddWarfrontRares()
local category = {}
local mapInfo = C_Map.GetMapInfo(14)
category.name = L["Rares"]
category.title = mapInfo.name..' '..L["Rares"]
category.columns = { "NPC", "Drops", "Defeated"}
category.items = {
{
name = EJ_GetEncounterInfo(2212),
questID = 52848,
faction = "Horde",
drops = { toy = true }
},
{
name = EJ_GetEncounterInfo(2213),
questID = 52847,
faction = "Alliance",
drops = { toy = true }
},
{
name = "Beastrider Kama",
questID = 53083,
id = 142709,
drops = { mount = 1180, gear = 280 }
},
{ name = "Branchlord Aldrus", id = 142508, questID = 53013, drops = { pet = 143503, gear = 280 } },
{ name = "Burning Goliath", questID = 53017, id = 141615, drops = { item = 163691, gear = 280 }},
{ name = "Cresting Goliath", questID = 53018, id = 141618, drops = { item = 163700, gear = 280 }},
{ name = "Darbel Montrose", id = 142688, questID = 53084, drops = { pet = 143507, gear = 280 }},
{
name = "Doomrider Helgrim",
id = 142741,
questID = 53085,
faction = 'Alliance',
drops = { mount = 1174, gear = 280 }
},
{ name = "Echo of Myzrael", id = 141668, questID = 53059, drops = { pet = 143515, gear = 280 }},
{ name = "Foulbelly", id = 142686, questID = 53086, drops = { toy = 163735, gear = 280 }},
{ name = "Fozruk", id = 142433, questID = 53019, drops = { pet = 143627, gear = 280 }},
{ name = "Geomancer Flintdagger", id = 142662, questID = 53060, drops = { toy = 163713, gear = 280 }},
{ name = "Horrific Apparition", id = 142725, questID = 53087, drops = { toy = 163736, gear = 280 }},
{
name = "Knight-Captain Aldrin",
id = 142739,
questID = 53088,
faction = 'Horde',
drops = { mount = 1173, gear = 280 }
},
{ name = "Kor'gresh Coldrage", id = 142112, questID = 53058, drops = { toy = 163744, gear = 280 }},
{ name = "Kovork", id = 142684, questID = 53089, drops = { toy = 163750, gear = 280 }},
{ name = "Man-Hunter Rog", id = 142716, questID = 53090, drops = { pet = 143628, gear = 280 }},
{ name = "Molok the Crusher", id = 141942, questID = 53057, drops = { toy = 163775, gear = 280 }},
{
name = "Overseer Krix",
id = 142423,
questID = 53014,
drops = { mount = 1182, gear = 280 }
},
{
name = "Nimar the Slayer",
id = 142692, questID = 53091,
drops = { mount = 1185, gear = 280 }
},
{ name = "Plaguefeather", id = 142435, questID = 53020, drops = { pet = 143564, gear = 280 }},
{ name = "Ragebeak", id = 142436, questID = 53016, drops = { pet = 143563, gear = 280 }},
{ name = "Rumbling Goliath", questID = 53021, id = 141620, drops = { item = 163701, gear = 280 }},
{ name = "Ruul Onestone", id = 142683, questID = 53092, drops = { toy = 163741, gear = 280 }},
{ name = "Singer", id = 142690, questID = 53093, drops = { toy = 163738, gear = 280 }},
{
name = "Skullripper",
id = 142437,
questID = 53022,
drops = { mount = 1183, gear = 280 }
},
{ name = "Thundering Goliath", questID = 53023, id = 141616, drops = { item = 163698, gear = 280 }},
{ name = "Venomarus", id = 142438, questID = 53024, drops = { pet = 143499, gear = 280 }},
{ name = "Yogursa", id = 142440, questID = 53015, drops = { pet = 143533, gear = 280 }},
{
name = "Zalas Witherbark",
id = 142682,
questID = 53094,
drops = { toy = 163745, gear = 280 }
}
}
category.showDrops = true
DISPLAY_DATA[#DISPLAY_DATA +1] = category
end
function WarfrontStatus:GetDisplayData(update)
if update or DISPLAY_DATA == nil or #DISPLAY_DATA == 0 then
DISPLAY_DATA = {}
AddWarfrontQuests()
AddWarfrontRares()
end
return DISPLAY_DATA
end
function WarfrontStatus:GetCurrencies()
local currencies = {
{ currencyID = 1560 }
}
for _, currency in pairs(currencies) do
currency.name, _, currency.texture = GetCurrencyInfo(currency.currencyID)
end
return currencies
end