from retail

This commit is contained in:
Bunny67
2022-05-19 22:04:17 +03:00
parent 9465daedd8
commit e7e789686a
86 changed files with 9118 additions and 5486 deletions
+17 -2
View File
@@ -1,11 +1,26 @@
local ipairs = ipairs
local pairs = pairs
local ceil, floor = math.ceil, math.floor
local abs, ceil, floor = math.abs, math.ceil, math.floor
local GetInstanceInfo = GetInstanceInfo
local GetNumPartyMembers = GetNumPartyMembers
local GetNumRaidMembers = GetNumRaidMembers
function noop()
end
function ipairs_reverse(table)
local function Enumerator(table, index)
index = index - 1;
local value = table[index];
if value ~= nil then
return index, value;
end
end
return Enumerator, table, #table + 1;
end
function tInvert(tbl)
local inverted = {};
for k, v in pairs(tbl) do
@@ -89,7 +104,7 @@ if not SmoothStatusBarMixin then
local min, max = bar:GetMinMaxValues();
local range = max - min;
if range > 0 then
return math.abs((newValue - targetValue) / range) < .00001;
return abs((newValue - targetValue) / range) < .00001;
end
return true;