Feature : Total of resolved artefacts by race
Axel303 opened this issue ยท 2 comments
Hello,
I would like to first thanks you for this nice add-on.
Do you think that would be possible to add the total of resolved artefacts by race?
I was able to do it myself with a "print()" in the code in history.lua line 685
local totalForThisRace=0;
for _, gparams in ipairs(groups) do
....
-- Set Progress
local progressState = MINARCH_PROGRESS_UNKNOWN;
local achievementState = MINARCH_ACHIPROGRESS_NONE;
if not details.firstcomplete then
frame.progress.text:SetText("0");
frame.progress.text:SetTextColor(GRAY_FONT_COLOR.r, GRAY_FONT_COLOR.g, GRAY_FONT_COLOR.b, 1)
elseif MinArch.artifacts[RaceID].project == details.artifactname then
if not details.totalcomplete or details.totalcomplete == 0 then
frame.progress.text:SetText("#1")
else
totalForThisRace = totalForThisRace+ 1; <== THIS
frame.progress.text:SetText("#" .. (details.totalcomplete + 1))
end
frame.progress.text:SetTextColor(1.0, 0.8, 0.0, 1.0)
progressState = MINARCH_PROGRESS_CURRENT;
else
totalForThisRace=totalForThisRace+details.totalcomplete <== THIS
frame.progress.text:SetText("x" .. details.totalcomplete)
frame.progress.text:SetTextColor(0.0, 1.0, 0.0, 1.0)
progressState = MINARCH_PROGRESS_KNOWN;
end
...
print(totalForThisRace)
Thanks for the reading
Thanks for the suggestion!, it is now implemented in v10.2.10, feel free to reopen this issue if you encounter any problems, or have any more suggestions on this.
Please note that a bug in Blizzard's API returns incorrect data right after solving an artifact, which messes up total counts. A /reload solves this.