Fixed heirloom ilvl scaling
kibsgaard [08-21-14 - 20:46]
Fixed heirloom ilvl scaling
diff --git a/KibsItemLevel.lua b/KibsItemLevel.lua
index aaaefc5..5f84ada 100644
--- a/KibsItemLevel.lua
+++ b/KibsItemLevel.lua
@@ -265,6 +265,14 @@ function findItemInfo(who)
if(line:match("Requires level")) then
local n = line:sub(line:find("%(") + 1,line:find("%)") - 1);
if n then
+ n = tonumber(n);
+ if n > 80 then
+ n = (( n - 80) * 26.6) + 200;
+ elseif n > 70 then
+ n = (( n - 70) * 10) + 100;
+ elseif n > 60 then
+ n = (( n - 60) * 4) + 60;
+ end
ilvl = n ;
end
end