Standardize location reporting across modules

This commit is contained in:
2025-01-09 12:52:47 +01:00
parent 58e071e77b
commit dee5053345
3 changed files with 27 additions and 3 deletions

View File

@@ -154,7 +154,9 @@ function shared.Spotter.Init()
end
local stinky = Heimdall_Data.config.stinkies[name] or false
local text = string.format("I see (%s) %s/%s %s of race %s (%s) with health %s/%s at %s (%2.2f, %2.2f)",
SetMapToCurrentZone()
SetMapByID(GetCurrentMapAreaID())
local text = string.format("I see (%s) %s/%s %s of race %s (%s) with health %s/%s at %s [%s](%2.2f, %2.2f)",
hostile and "Hostile" or "Friendly",
name,
class,
@@ -164,6 +166,7 @@ function shared.Spotter.Init()
FormatHP(hp),
FormatHP(maxHp),
location,
tostring(GetCurrentMapAreaID()),
x * 100, y * 100)
if Heimdall_Data.config.spotter.debug then