Merge branch 'config'

This commit is contained in:
2025-01-07 01:17:26 +01:00
8 changed files with 1340 additions and 6 deletions

5
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"Lua.diagnostics.globals": [
"UIParent"
]
}

View File

@@ -40,6 +40,7 @@ local function init()
---@field Commander InitTable
---@field StinkyTracker InitTable
---@field CombatAlerter InitTable
---@field Config InitTable
--- Config ---
---@class HeimdallConfig
@@ -369,6 +370,7 @@ local function init()
shared.Macroer.Init()
shared.Commander.Init()
shared.CombatAlerter.Init()
shared.Config.Init()
print("Heimdall loaded!")
end

View File

@@ -1,6 +1,6 @@
## Interface: 70300
## Title: Heimdall
## Version: 2.14.1
## Version: 3.0.0
## Notes: Watches over areas and alerts when hostiles spotted
## Author: Cyka
## SavedVariables: Heimdall_Data
@@ -23,4 +23,5 @@ Modules/Macroer.lua
Modules/Commander.lua
Modules/StinkyTracker.lua
Modules/CombatAlerter.lua
Modules/Config.lua
Heimdall.lua

BIN
Heimdall.zip (Stored with Git LFS)

Binary file not shown.

View File

@@ -183,8 +183,8 @@ function shared.Commander.Init()
{ keywordRe = "^classes", commanderOnly = false, callback = CountClassPartitionedStinkies },
{ keywordRe = "^help", commanderOnly = false, callback = HelpRu },
{ keywordRe = "^helpen", commanderOnly = false, callback = HelpEn },
{ keywordRe = "^joingroup", commanderOnly = true, callback = JoinGroup },
{ keywordRe = "^leavegroup", commanderOnly = true, callback = LeaveGroup },
{ keywordRe = "^joingroup", commanderOnly = false, callback = JoinGroup },
{ keywordRe = "^leavegroup", commanderOnly = false, callback = LeaveGroup },
{ keywordRe = "^follow", commanderOnly = false, callback = FollowTarget },
}

1321
Modules/Config.lua Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -98,6 +98,11 @@ function shared.StinkyTracker.Init()
shared.stinkyTracker.stinkies[name] = stinky
end
end
for name, stinky in pairs(shared.stinkyTracker.stinkies) do
if Heimdall_Data.config.agents[name] then
shared.stinkyTracker.stinkies[name] = nil
end
end
end)
print("Heimdall - StinkyTracker loaded")

View File

@@ -109,7 +109,7 @@ function shared.Whoer.Init()
---@type WHOQuery[]
local whoQueries = {
WHOQuery.new("g-\"БеспредеЛ\"", {}),
WHOQuery.new("g-\"Dovakhin\"", {}),
--WHOQuery.new("g-\"Dovahkin\"", {}),
WHOQuery.new(
"z-\"Orgrimmar\" z-\"Durotar\" z-\"Valley of Trials\" r-\"Human\" r-\"Dwarf\" r-\"Night Elf\"",
{ NotSiegeOfOrgrimmarFilter, AllianceFilter }),