MapIDs for valid instances / battleground sizes

This commit is contained in:
andrew6180
2024-05-21 04:25:19 -07:00
parent 751fc03021
commit dfbabe706a
3 changed files with 45 additions and 16 deletions
+8 -9
View File
@@ -4518,19 +4518,18 @@ end
--key is instanceId from GetInstanceInfo()
-- /dump GetInstanceInfo()
DF.BattlegroundSizes = {
[2245] = 15, --Deepwind Gorge
[2106] = 10, --Warsong Gulch
[2107] = 15, --Arathi Basin
[489] = 10, --Warsong Gulch
[1682] = 10, --Warsong Gulch (Winter)
[529] = 15, --Arathi Basin
[1681] = 15, --Arathi Basin (Winter)
[566] = 15, --Eye of the Storm
[30] = 40, --Alterac Valley
[628] = 40, --Isle of Conquest
[761] = 10, --The Battle for Gilneas
[628] = 40, --Isle of conquest
[726] = 10, --Twin Peaks
[727] = 10, --Silvershard Mines
[998] = 10, --Temple of Kotmogu
[2118] = 40, --Battle for Wintergrasp
[1191] = 25, --Ashran
[1803] = 10, --Seething Shore
[800] = 100, --???
[1280] = 40, --Southshore vs. Tarren Mill
[3000] = 40, --TestBG [Alterac Valley]
}
function DF:GetBattlegroundSize(instanceInfoMapId)
+34 -2
View File
@@ -519,9 +519,41 @@ do
}
--current instances of the exp (need to maintain)
_detalhes.InstancesToStoreData = { --mapId
[2549] = true, --amirdrassil
local expansion = GetExpansionLevel()
if expansion == Enum.Expansion.TBC then
_detalhes.InstancesToStoreData = { --GetActiveMapID()
[532] = true, --Karazhan
[565] = true, --Gruul's Lair
[544] = true, --Magtheridon's Lair
[548] = true, --Serpentshrine Cavern
[550] = true, --Tempest Keep
[534] = true, --Battle for Mount Hyjal
[564] = true, --Black Temple
[580] = true, --Sunwell Plateau
}
elseif expansion == Enum.Expansion.WoTLK then
_detalhes.InstancesToStoreData = { --GetActiveMapID()
[533] = true, --Naxxramas
[615] = true, --Obsidian Sanctum
[616] = true, --Eye of Eternity
[624] = true, --Vault of Achavon
[603] = true, --Ulduar
[249] = true, --Onyxia's Lair
[649] = true, --Trial of the Crusader
[631] = true, --Icecrown Citadel
[724] = true, --Ruby Sanctum
}
else -- vanilla
_detalhes.InstancesToStoreData = { --GetActiveMapID()
[409] = true, --Molten Core
[469] = true, --Blackwing Lair
[249] = true, --Onyxia's Lair
[509] = true, --Ruins of Ahn'Qiraj
[531] = true, --Temple of Ahn'Qiraj
[533] = true, --Naxxramas
}
end
--store shield information for absorbs
_detalhes.ShieldCache = {}
+2 -4
View File
@@ -1550,8 +1550,7 @@ function Details.Database.StoreWipe(combat)
return
end
local name, type, difficulty, difficultyName, maxPlayers, playerDifficulty, isDynamicInstance, mapID, instanceGroupSize = GetInstanceInfo()
local bossCLEUID = combat.boss_info and combat.boss_info.id
local _, _, _, _, _, _, _, mapID = GetInstanceInfo()
if (not instancesToStoreData[mapID]) then
if (_detalhes.debug) then
@@ -1619,8 +1618,7 @@ function Details.Database.StoreEncounter(combat)
return
end
local name, type, difficulty, difficultyName, maxPlayers, playerDifficulty, isDynamicInstance, mapID, instanceGroupSize = GetInstanceInfo()
local bossCLEUID = combat.boss_info and combat.boss_info.id
local _, _, _, _, _, _, _, mapID = GetInstanceInfo()
if (not instancesToStoreData[mapID]) then
if (_detalhes.debug) then