Refactor stinky detection to heimdall
This commit is contained in:
@@ -40,7 +40,7 @@ function shared.Spotter.Init()
|
||||
end
|
||||
|
||||
if Heimdall_Data.config.spotter.stinky then
|
||||
if Heimdall_Data.config.stinkies[name] then
|
||||
if shared.IsStinky(name) then
|
||||
if Heimdall_Data.config.spotter.debug then
|
||||
print(string.format("[%s] Notifying - Found stinky: %s", ModuleName, name))
|
||||
end
|
||||
@@ -153,7 +153,7 @@ function shared.Spotter.Init()
|
||||
print(string.format("[%s] Player %s coordinates: %.2f, %.2f", ModuleName, name, x * 100, y * 100))
|
||||
end
|
||||
|
||||
local stinky = Heimdall_Data.config.stinkies[name] or false
|
||||
local stinky = shared.IsStinky(name) or false
|
||||
SetMapToCurrentZone()
|
||||
SetMapByID(GetCurrentMapAreaID())
|
||||
local text = string.format(shared.L.en.spotterSpotted,
|
||||
|
||||
Reference in New Issue
Block a user