This commit is contained in:
@@ -73,8 +73,14 @@ function shared.BonkDetector.Init()
|
||||
if lastReportTime[source] and (currentTime - lastReportTime[source]) < throttle then
|
||||
if Heimdall_Data.config.bonkDetector.debug then
|
||||
local timeLeft = throttle - (currentTime - lastReportTime[source])
|
||||
print(string.format("[%s] Damage report throttled for %s (%.1f seconds remaining)",
|
||||
ModuleName, source, timeLeft))
|
||||
print(
|
||||
string.format(
|
||||
"[%s] Damage report throttled for %s (%.1f seconds remaining)",
|
||||
ModuleName,
|
||||
source,
|
||||
timeLeft
|
||||
)
|
||||
)
|
||||
end
|
||||
return
|
||||
end
|
||||
@@ -82,8 +88,15 @@ function shared.BonkDetector.Init()
|
||||
lastReportTime[source] = currentTime
|
||||
|
||||
if Heimdall_Data.config.bonkDetector.debug then
|
||||
print(string.format("[%s] Processing damage event - Source: %s, Target: %s, Type: %s",
|
||||
ModuleName, source, destination, subevent))
|
||||
print(
|
||||
string.format(
|
||||
"[%s] Processing damage event - Source: %s, Target: %s, Type: %s",
|
||||
ModuleName,
|
||||
source,
|
||||
destination,
|
||||
subevent
|
||||
)
|
||||
)
|
||||
end
|
||||
|
||||
for _, channel in pairs(Heimdall_Data.config.bonkDetector.channels) do
|
||||
|
||||
Reference in New Issue
Block a user