This commit is contained in:
Anch
2022-03-12 17:17:13 +13:00
parent 0c930e9dbb
commit a3668b8b2f
10 changed files with 265 additions and 223 deletions
+17
View File
@@ -493,6 +493,7 @@ function AtlasLoot_OnLoad()
AtlasLoot_SlashCommand(msg);
end
<<<<<<< Updated upstream
--Set defualt to classic as that seems to be where most players are.
local function getExpacByLevel()
if UnitLevel("player") > 60 then
@@ -502,6 +503,22 @@ function AtlasLoot_OnLoad()
end
end
AtlasLoot_Expac = ATLAS_EXPANSION[GetAccountExpansionLevel()] or getExpacByLevel();
=======
function AtlasLoot_SetExpac()
if GetAccountExpansionLevel() == 0 then
AtlasLoot_Expac = "CLASSIC";
AtlasLoot_Expac2 = "TBC";
AtlasLoot_Expac3 = "WRATH";
elseif GetAccountExpansionLevel() == 1 then
AtlasLoot_Expac = "TBC";
AtlasLoot_Expac2 = "CLASSIC";
AtlasLoot_Expac3 = "WRATH";
elseif GetAccountExpansionLevel() == 2 then
AtlasLoot_Expac = "WRATH";
AtlasLoot_Expac2 = "CLASSIC";
AtlasLoot_Expac3 = "TBC";
end
>>>>>>> Stashed changes
end
--[[