Skip to content

Commit

Permalink
🐛 Fix db overrides (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisliebaer authored Nov 7, 2023
1 parent f51b6ab commit 61f3f1a
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 43 deletions.
20 changes: 11 additions & 9 deletions .pkgmeta
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ package-as: FailFeed
wowi-archive-previous: no

externals:
Libs/Bundled/AceAddon-3.0: https://repos.wowace.com/wow/ace3/trunk/AceAddon-3.0
Libs/Bundled/AceConfig-3.0: https://repos.wowace.com/wow/ace3/trunk/AceConfig-3.0
Libs/Bundled/AceConsole-3.0: https://repos.wowace.com/wow/ace3/trunk/AceConsole-3.0
Libs/Bundled/AceDB-3.0: https://repos.wowace.com/wow/ace3/trunk/AceDB-3.0
Libs/Bundled/AceDBOptions-3.0: https://repos.wowace.com/wow/ace3/trunk/AceDBOptions-3.0
Libs/Bundled/AceGUI-3.0: https://repos.wowace.com/wow/ace3/trunk/AceGUI-3.0
Libs/Bundled/AceGUI-3.0-SharedMediaWidgets: https://repos.wowace.com/wow/ace-gui-3-0-shared-media-widgets/trunk
Libs/Bundled/LibStub: https://repos.wowace.com/wow/libstub/trunk
Libs/Bundled/LibSharedMedia-3.0: https://repos.wowace.com/wow/libsharedmedia-3-0/trunk/LibSharedMedia-3.0

Libs/Bundled/AceAddon-3.0: https://repos.wowace.com/wow/ace3/trunk/AceAddon-3.0
Libs/Bundled/AceConfig-3.0: https://repos.wowace.com/wow/ace3/trunk/AceConfig-3.0
Libs/Bundled/AceConsole-3.0: https://repos.wowace.com/wow/ace3/trunk/AceConsole-3.0
Libs/Bundled/AceDB-3.0: https://repos.wowace.com/wow/ace3/trunk/AceDB-3.0
Libs/Bundled/AceDBOptions-3.0: https://repos.wowace.com/wow/ace3/trunk/AceDBOptions-3.0
Libs/Bundled/AceGUI-3.0: https://repos.wowace.com/wow/ace3/trunk/AceGUI-3.0
Libs/Bundled/AceGUI-3.0-SharedMediaWidgets: https://repos.wowace.com/wow/ace-gui-3-0-shared-media-widgets/trunk
Libs/Bundled/LibStub: https://repos.wowace.com/wow/libstub/trunk
Libs/Bundled/LibSharedMedia-3.0: https://repos.wowace.com/wow/libsharedmedia-3-0/trunk/LibSharedMedia-3.0
ignore:
- tools
66 changes: 32 additions & 34 deletions db/Overrides.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,67 +2,65 @@
-- It is intended to be used to override the default EHDB database.
-- Tables are located in ns.ehdb.<TableName>
-- All tables are maps, with the key being the spellID and the value being true.
-- If you want to add an entry, set the value to True.
-- If you want to remove an entry, set the value to Nil.
-- If you want to add an entry, set the value to true.
-- If you want to remove an entry, set the value to false.

local _, ns = ...

local tables = {
"Spells",
"SpellsNoTank",
"Auras",
"AurasNoTank",
"MeleeHitters",
}
local overrides = {}

local Spells = {
[393444] = Nil, -- Spear Flurry / Gushing Wound (Refti Defender)
overrides.Spells = {
[393444] = false, -- Spear Flurry / Gushing Wound (Refti Defender)

[393432] = True, -- Spear Flurry (Refti Defender)
[393444] = True, -- Gushing Wound (Refti Defender)
[256477] = True, -- Shark Toss (Trothak, Ring of Booty)
[183100] = True, -- Avalanche, Rocks (Mightstone Breaker)
[411001] = True, -- Lethal Current (Lurking Tempest)
[393432] = true, -- Spear Flurry (Refti Defender)
[393444] = true, -- Gushing Wound (Refti Defender)
[256477] = true, -- Shark Toss (Trothak, Ring of Booty)
[183100] = true, -- Avalanche, Rocks (Mightstone Breaker)
[411001] = true, -- Lethal Current (Lurking Tempest)

-- ... add entries here
}

local SpellsNoTank = {
[382712] = Nil, -- Necrotic Breath, Initial (Wilted Oak)
[382805] = Nil, -- Necrotic Breath, DoT (Wilted Oak)
[226406] = Nil, -- Ember Swip (Emberhusk Dominator)
overrides.SpellsNoTank = {
[382712] = false, -- Necrotic Breath, Initial (Wilted Oak)
[382805] = false, -- Necrotic Breath, DoT (Wilted Oak)
[226406] = false, -- Ember Swip (Emberhusk Dominator)

[387571] = True, -- Focused Deluge (Primal Tsunami)
[387504] = True, -- Squall Buffet (Primal Tsunami)
[374544] = True, -- Burst of Decay (Fetid Rotsinger)
[385833] = True, -- Bloodthirsty Charge (Rageclaw) (Knockback)
[385834] = True, -- Bloodthirsty Charge (Rageclaw) (Dot)
[200732] = True, -- Molten Crash (Dargrul)
[387571] = true, -- Focused Deluge (Primal Tsunami)
[387504] = true, -- Squall Buffet (Primal Tsunami)
[374544] = true, -- Burst of Decay (Fetid Rotsinger)
[385833] = true, -- Bloodthirsty Charge (Rageclaw) (Knockback)
[385834] = true, -- Bloodthirsty Charge (Rageclaw) (Dot)
[200732] = true, -- Molten Crash (Dargrul)

-- ... add entries here
}

local Auras = {
overrides.Auras = {
-- ... add entries here
}

local AurasNoTank = {
[374615] = True, -- Cheap Shot (Skulking Zealot)
overrides.AurasNoTank = {
[374615] = true, -- Cheap Shot (Skulking Zealot)

-- ... add entries here
}

local MeleeHitters = {
overrides.MeleeHitters = {
-- ... add entries here
}


function merge(target, override)
for k, v in pairs(override) do
target[k] = v
if v == false then
target[k] = nil
else
target[k] = v
end
end
end

for _, table in ipairs(tables) do
merge(ns.ehdb[table], _G[table])

for table, _ in pairs(overrides) do
merge(ns.ehdb[table], overrides[table])
end

0 comments on commit 61f3f1a

Please sign in to comment.