Skip to content

Commit

Permalink
add arena seasion data
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoizame committed Apr 24, 2021
1 parent dfee8e4 commit 2d41a9f
Show file tree
Hide file tree
Showing 6 changed files with 561 additions and 115 deletions.
5 changes: 5 additions & 0 deletions AtlasLootClassic/Button/Extra_Price_type.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ local PRICE_INFO = {
--- BC
["holydust"] = { itemID = 29735 }, -- Holy Dust (Aldor)
["arcanerune"] = { itemID = 29736 }, -- Holy Dust (Scryers)
["SpiritShard"] = { itemID = 28558 }, -- Spirit Shard
["HalaaRT"] = { itemID = 26044 }, -- Halaa Research Token
["HalaaBT"] = { itemID = 26045 }, -- Halaa Battle Token
["MarkOfThrallmar"] = { itemID = 24581 }, -- Mark of Thrallmar
["MarkOfHonorHold"] = { itemID = 24579 }, -- Mark of Honor Hold
}

local Cache = {}
Expand Down
6 changes: 4 additions & 2 deletions AtlasLootClassic/Button/Set_type.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ function Set.OnMouseAction(button, mouseButton)
elseif mouseButton == "WoWHeadLink" then
AtlasLoot.Button:OpenWoWHeadLink(button, "item-set", button.SetID)
elseif mouseButton == "DressUp" then
for i = 1, #button.Items do
DressUpItemLink(type(button.Items[i]) == "string" and button.Items[i] or "item:"..button.Items[i])
if button.Items then
for i = 1, #button.Items do
DressUpItemLink(type(button.Items[i]) == "string" and button.Items[i] or "item:"..button.Items[i])
end
end
elseif mouseButton == "OpenSet" then
Set.OnClickItemList(button)
Expand Down
1 change: 1 addition & 0 deletions AtlasLootClassic/Core/Tooltip.lua
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ AtlasLoot:AddInitFunc(HookInit)
local PLAYER_GUID_REGISTER = {
["Player-4463-003F795C"] = format(GOLD, "AtlasLoot Author"),
["Player-4466-015209F9"] = format(GOLD, "AtlasLoot Author"),
["Player-4455-0309734D"] = format(GOLD, "AtlasLoot Author"),
["Player-4455-00D28DDC"] = format(SILVER, "AtlasLoot Friend"),
["Player-4463-00A5D43D"] = format(SILVER, "AtlasLoot Friend"),
["Player-4476-0054EED9"] = format(COPPER, "aka god of shadow"),
Expand Down
5 changes: 5 additions & 0 deletions AtlasLootClassic/ItemDB/ItemDB.lua
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,11 @@ local extra_iTable_types = {}

function ItemDB.Proto:AddExtraItemTableType(typ)
if not extra_iTable_types[self.__atlaslootdata.addonName] then extra_iTable_types[self.__atlaslootdata.addonName] = {} end
for i = 1, #extra_iTable_types[self.__atlaslootdata.addonName] do
if extra_iTable_types[self.__atlaslootdata.addonName][i] == type then
return i + 100
end
end
extra_iTable_types[self.__atlaslootdata.addonName][#extra_iTable_types[self.__atlaslootdata.addonName]+1] = typ
return #extra_iTable_types[self.__atlaslootdata.addonName] + 100
end
Expand Down
Loading

0 comments on commit 2d41a9f

Please sign in to comment.