WoWInterface SVN UrbanAchiever

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 10 to Rev 11
    Reverse comparison

Rev 10 → Rev 11

Main.lua
48,14 → 48,30
end,
 
["points d"] = function(a, b)
if self.masterList[a].isAchievement then
_,_,a = GetAchievementInfo(a)
else
a = GetStatistic(a)
end
if self.masterList[b].isAchievement then
_,_,b = GetAchievementInfo(b)
else
b = GetStatistic(b)
end
return a < b
end,
 
["points a"] = function(a, b)
if self.masterList[a].isAchievement then
_,_,a = GetAchievementInfo(a)
else
a = GetStatistic(a)
end
if self.masterList[b].isAchievement then
_,_,b = GetAchievementInfo(b)
else
b = GetStatistic(b)
end
return a > b
end,
 
77,19 → 93,41
 
["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
}