Files
wow-weakauras/FreshShit/BattlePassAccountWideTimer/event.lua

20 lines
407 B
Lua

--TICKER_1000
---@param allstates allstates
---@param e string
function(allstates, e)
local chars = aura_env.CalculateAllOnlineTime()
for char, time in pairs(chars) do
local timeInMinutes = time / 60
---@type state
local state = {
changed = true,
show = true,
name = char,
time = string.format("%.1f", timeInMinutes),
index = char,
}
allstates[char] = state
end
return true
end