Clean up the log messages a little
This commit is contained in:
@@ -69,6 +69,9 @@ function shared.Spotter.Init()
|
|||||||
local maxHp = UnitHealthMax(unit)
|
local maxHp = UnitHealthMax(unit)
|
||||||
if not maxHp then return string.format("Could not find maxHp for unit %s", tostring(unit)) end
|
if not maxHp then return string.format("Could not find maxHp for unit %s", tostring(unit)) end
|
||||||
|
|
||||||
|
local class = UnitClass(unit)
|
||||||
|
if not class then return string.format("Could not find class for unit %s", tostring(unit)) end
|
||||||
|
|
||||||
local location = Heimdall_Data.config.spotter.zoneOverride
|
local location = Heimdall_Data.config.spotter.zoneOverride
|
||||||
if not location then
|
if not location then
|
||||||
local zone = GetZoneText()
|
local zone = GetZoneText()
|
||||||
@@ -79,10 +82,11 @@ function shared.Spotter.Init()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local stinky = Heimdall_Data.config.stinkies[name] or false
|
local stinky = Heimdall_Data.config.stinkies[name] or false
|
||||||
local text = string.format("I see (%s) %s %s of race %s (%s) with health %s/%s at %s",
|
local text = string.format("I see (%s) %s/%s %s of race %s (%s) with health %s/%s at %s",
|
||||||
hostile and "Hostile" or "Friendly",
|
hostile and "Hostile" or "Friendly",
|
||||||
stinky and string.format("(%s)", "!!!!") or "",
|
stinky and string.format("(%s)", "!!!!") or "",
|
||||||
name,
|
name,
|
||||||
|
class,
|
||||||
race,
|
race,
|
||||||
faction,
|
faction,
|
||||||
FormatHP(hp),
|
FormatHP(hp),
|
||||||
|
|||||||
@@ -386,7 +386,7 @@ function shared.Whoer.Init()
|
|||||||
local ret = {}
|
local ret = {}
|
||||||
for _, player in pairs(HeimdallStinkies) do
|
for _, player in pairs(HeimdallStinkies) do
|
||||||
if Heimdall_Data.config.who.zoneNotifyFor[player.zone] then
|
if Heimdall_Data.config.who.zoneNotifyFor[player.zone] then
|
||||||
ret[#ret + 1] = string.format("%s-%s (%s) %s", player.name, player.class, player.zone, player.stinky and "(!!!!)" or "")
|
ret[#ret + 1] = string.format("%s/%s (%s) %s", player.name, player.class, player.zone, player.stinky and "(!!!!)" or "")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return ret
|
return ret
|
||||||
|
|||||||
Reference in New Issue
Block a user