You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
678 B
23 lines
678 B
local _, WBT = ...;
|
|
|
|
local TestUtil = {};
|
|
|
|
if type(WBT) == 'table' then -- True when loaded via WoW, but not UnitTest.
|
|
WBT.TestUtil = TestUtil;
|
|
end
|
|
|
|
function TestUtil.CreateShareMsg(bossname, servertime, t_since_death, shard_id)
|
|
local t = servertime - t_since_death;
|
|
local decorator
|
|
local shard_id_part
|
|
if shard_id then
|
|
decorator = ""
|
|
shard_id_part = "-" .. tostring(shard_id)
|
|
else
|
|
decorator = "{rt8}"
|
|
shard_id_part = "" -- Legacy. Can't happen any longer.
|
|
end
|
|
return decorator..bossname..decorator..": 6m 52s (WorldBossTimers:" .. tostring(t) .. shard_id_part .. ")";
|
|
end
|
|
|
|
return TestUtil;
|