Add option to echo to russian channel
This commit is contained in:
@@ -94,18 +94,20 @@ function shared.CombatAlerter.Init()
|
||||
end
|
||||
subZone = shared.L.ru.zones[subZone] or subZone
|
||||
|
||||
---@type Message
|
||||
msg = {
|
||||
channel = "CHANNEL",
|
||||
data = Heimdall_Data.config.combatAlerter.masterChannel .. "ru",
|
||||
message = string.format(shared.L.ru.combatAlerterInCombat,
|
||||
source,
|
||||
zone, subZone,
|
||||
tostring(GetCurrentMapAreaID()),
|
||||
x * 100, y * 100
|
||||
),
|
||||
}
|
||||
table.insert(shared.messenger.queue, msg)
|
||||
if Heimdall_Data.config.echoToRussian then
|
||||
-- Russian message
|
||||
local ruMsg = {
|
||||
channel = "CHANNEL",
|
||||
data = Heimdall_Data.config.combatAlerter.masterChannel .. "ru",
|
||||
message = string.format(shared.L.ru.combatAlerterInCombat,
|
||||
source,
|
||||
zone, subZone,
|
||||
tostring(GetCurrentMapAreaID()),
|
||||
x * 100, y * 100
|
||||
),
|
||||
}
|
||||
table.insert(shared.messenger.queue, ruMsg)
|
||||
end
|
||||
elseif Heimdall_Data.config.combatAlerter.debug then
|
||||
print(string.format("[%s] Source not in stinky list, ignoring: %s", ModuleName, source))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user