[130905] = true, -- Demonic |
}, |
} |
|
local function fragmentUpdate() |
if(not WorldMapFrame:IsShown()) then |
-- SetMapToCurrentZone() |
end |
if(not IsAddOnLoaded("Blizzard_ArchaeologyUI")) then |
UIParentLoadAddOn("Blizzard_ArchaeologyUI") |
end |
local continent |
local function getContinent() |
local mapID = C_Map.GetBestMapForUnit("player") |
if(mapID) then |
local info = C_Map.GetMapInfo(mapID) |
if(info) then |
if(info['mapType'] > 2) then |
while(info['mapType'] > 2) do |
info = C_Map.GetMapInfo(info['parentMapID']) |
end |
continent = info['mapID'] |
while(info['mapType'] and info['mapType'] > 2) do |
info = C_Map.GetMapInfo(info['parentMapID']) |
end |
if(info['mapType'] == 2) then |
return info['mapID'] |
end |
end |
end |
for i=1,GetNumArchaeologyRaces() do |
local raceName, raceTexture, raceItemID, raceCurrency, numFragmentsRequired = GetArchaeologyRaceInfo(i) |
if(raceName) then |
SetSelectedArtifact(i) |
local artifactName, artifactDescription, artifactRarity, artifactIcon, hoverDescription, keystoneCount, bgTexture, firstCompletionTime, completionCount = GetActiveArtifactByRace(i) |
if(type(raceCurrency) == 'number') then |
raceCurrencies[raceName] = { |
['cur'] = raceName, |
['tex'] = bgTexture, |
['id'] = raceItemID, |
['count'] = raceCurrency, |
['required'] = numFragmentsRequired, |
['quality'] = artifactRarity, |
['keystones'] = keystoneCount, |
['show'] = findings[continent] and findings[continent][raceItemID] or nil, |
} |
end |
local function fragmentUpdate() |
if(not IsAddOnLoaded("Blizzard_ArchaeologyUI")) then |
UIParentLoadAddOn("Blizzard_ArchaeologyUI") |
end |
local continent = getContinent() |
if(continent) then |
for i=1,GetNumArchaeologyRaces() do |
local raceName, raceTexture, raceItemID, raceCurrency, numFragmentsRequired = GetArchaeologyRaceInfo(i) |
if(raceName) then |
SetSelectedArtifact(i) |
local artifactName, artifactDescription, artifactRarity, artifactIcon, hoverDescription, keystoneCount, bgTexture, firstCompletionTime, completionCount = GetActiveArtifactByRace(i) |
if(type(raceCurrency) == 'number') then |
raceCurrencies[raceName] = { |
['cur'] = raceName, |
['tex'] = bgTexture, |
['id'] = raceItemID, |
['count'] = raceCurrency, |
['required'] = numFragmentsRequired, |
['quality'] = artifactRarity, |
['keystones'] = keystoneCount, |
['show'] = findings[continent] and findings[continent][raceItemID] or nil, |
} |
end |
end |
end |
end |