|
["compare d"] = function(a, b) |
if not self.isComparing then return false end |
local _,a1, a2, a3 = GetAchievementComparisonInfo(a,1) |
local _,b1, b2, b3 = GetAchievementComparisonInfo(b,1) |
a = (a1 or "") .. "/" .. (a2 or "") .. "/" .. (a3 or "") |
b = (b1 or "") .. "/" .. (b2 or "") .. "/" .. (b3 or "") |
|
if self.masterList[a].isFunction then |
local _,a1, a2, a3 = GetAchievementComparisonInfo(a,1) |
a = (a1 or "") .. "/" .. (a2 or "") .. "/" .. (a3 or "") |
else |
a = GetStatistic(a) |
end |
|
if self.masterList[b].isFunction then |
local _,b1, b2, b3 = GetAchievementComparisonInfo(b,1) |
b = (b1 or "") .. "/" .. (b2 or "") .. "/" .. (b3 or "") |
else |
b = GetStatistic(b) |
end |
|
return a < b |
end, |
|
["compare a"] = function(a, b) |
if not self.isComparing then return false end |
local _,a1, a2, a3 = GetAchievementComparisonInfo(a,1) |
local _,b1, b2, b3 = GetAchievementComparisonInfo(b,1) |
a = (a1 or "") .. "/" .. (a2 or "") .. "/" .. (a3 or "") |
b = (b1 or "") .. "/" .. (b2 or "") .. "/" .. (b3 or "") |
|
if self.masterList[a].isFunction then |
local _,a1, a2, a3 = GetAchievementComparisonInfo(a,1) |
a = (a1 or "") .. "/" .. (a2 or "") .. "/" .. (a3 or "") |
else |
a = GetStatistic(a) |
end |
|
if self.masterList[b].isFunction then |
local _,b1, b2, b3 = GetAchievementComparisonInfo(b,1) |
b = (b1 or "") .. "/" .. (b2 or "") .. "/" .. (b3 or "") |
else |
b = GetStatistic(b) |
end |
|
return a > b |
end |
} |