Skip to content

Commit

Permalink
start with collections and add crafting dummy
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoizame committed Jul 1, 2019
1 parent b4e34d1 commit ba1619f
Show file tree
Hide file tree
Showing 10 changed files with 215 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
AtlasLootClassic/Core/MapPOI.lua
/AtlasLootClassic/Core/MapPOI.lua
/.vscode
42 changes: 42 additions & 0 deletions .pkgmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package-as: AtlasLootClassic

manual-changelog:
filename: AtlasLootClassic/Documentation/Release_Notes.txt
markup-type: plain

license-output: AtlasLootClassic/Documentation/LICENSE.txt

externals:
# SVN
AtlasLoot/Libs/CallbackHandler-1.0:
url: https://repos.wowace.com/wow/callbackhandler/trunk/CallbackHandler-1.0
AtlasLoot/Libs/LibStub:
url: https://repos.wowace.com/wow/libstub/trunk
AtlasLoot/Libs/LibSharedMedia-3.0:
url: https://repos.wowace.com/wow/libsharedmedia-3-0/trunk/LibSharedMedia-3.0
AtlasLoot/Libs/LibDBIcon-1.0:
url: https://repos.wowace.com/wow/libdbicon-1-0/trunk/LibDBIcon-1.0
AtlasLoot/Libs/LibBabble-Boss-3.0:
url: https://repos.wowace.com/wow/libbabble-boss-3-0/trunk
AtlasLoot/Libs/LibBabble-Faction-3.0:
url: https://repos.wowace.com/wow/libbabble-faction-3-0/trunk
AtlasLoot/Libs/LibBabble-ItemSet-3.0:
url: https://repos.wowace.com/wow/libbabble-itemset-3-0/trunk
# HG
AtlasLoot/Libs/LibDialog-1.0:
url: https://repos.wowace.com/wow/libdialog-1-0

# Ignore takes place before folder's moving takes place
ignore:
- AtlasLootClassic/Images/PSD
- AtlasLootClassic/AtlasLootClassic/Images/PSD
- AtlasLootClassic/AtlasLootClassic/DEVTOOLS.lua
- AtlasLootClassic/AtlasLootClassic/Libs/AceGUI-3.0

move-folders:
AtlasLootClassic/AtlasLootClassic: AtlasLootClassic
AtlasLootClassic/AtlasLoot_Crafting: AtlasLoot_Crafting
AtlasLootClassic/AtlasLootClassic_DungeonsAndRaids: AtlasLootClassic_DungeonsAndRaids
AtlasLootClassic/AtlasLootClassic_PvP: AtlasLootClassic_PvP
AtlasLootClassic/AtlasLootClassic_Collections: AtlasLootClassic_Collections

1 change: 0 additions & 1 deletion AtlasLootClassic/AtlasLootClassic.toc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
## Notes: Shows the possible loot from the bosses
#@end-debug@

## X-eMail: [email protected]
## X-Credits: Daviesh, Lag, Cellelach, Asurn, Pernicus, Dynaletik and many others
## X-Category: Map
## X-License: GPL v2
Expand Down
1 change: 1 addition & 0 deletions AtlasLootClassic/Data/Sets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ local globalSetTable = {
},
},
},
-- TODO: Add better description and the class icons with fallback to Head->Robe->FirstItem(?) slot icon
["SetID"] = {
name = AL["Sets"],
{
Expand Down
14 changes: 14 additions & 0 deletions AtlasLootClassic/Loader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ local ATLASLOOT_MODULE_LIST = {
tt_title = nil, -- ToolTip title
tt_text = nil, -- ToolTip text
},
{
addonName = "AtlasLootClassic_Crafting",
--icon = "Interface\\ICONS\\Inv_ChampionsOfAzeroth",
name = AL["Crafting"],
tt_title = nil, -- ToolTip title
tt_text = nil, -- ToolTip text
},
{
addonName = "AtlasLootClassic_Collections",
--icon = "Interface\\ICONS\\Inv_ChampionsOfAzeroth",
name = AL["Collections"],
tt_title = nil, -- ToolTip title
tt_text = nil, -- ToolTip text
},
}
local ATLASLOOT_MODULE_LIST_NAMES = {}
for i = 1, #ATLASLOOT_MODULE_LIST do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
## Notes: AtlasLoot loot tables from Collections
#@end-debug@

## X-eMail: [email protected]
## X-Category: Map
## X-License: GPL v2

Expand Down
65 changes: 54 additions & 11 deletions AtlasLootClassic_Collections/data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,64 @@ local GENERAL_CONTENT = data:AddContentType(GENERAL, ATLASLOOT_RAID40_COLOR)
data["TierSets"] = {
name = AL["Tier Sets"],
ContentType = SET_CONTENT,
LoadDifficulty = NORMAL_DIFF,
TableType = LOAD_DIFF,
LoadDifficulty = LOAD_DIFF,
TableType = SET_ITTYPE,
items = {
{ -- AVRepFriendly
name = "T 0",
{ -- T1
name = "T1",
[ALLIANCE_DIFF] = {
{ 1, "SetID:203:n" }, -- Warlock
{ 3, "SetID:202:n" }, -- Priest
{ 16, "SetID:201:n" }, -- Mage
{ 5, "SetID:204:n" }, -- Rogue
{ 20, "SetID:205:n" }, -- Druid
{ 7, "SetID:206:n" }, -- Hunter
{ 9, "SetID:209:n" }, -- Warrior
{ 24, "SetID:208:n" }, -- Paladin
},

[HORDE_DIFF] = {
GetItemsFromDiff = ALLIANCE_DIFF,
{ 22, "SetID:207:n" }, -- Shaman
{ 24 }, -- Paladin
},
},
{ -- T2
name = "T2",
[ALLIANCE_DIFF] = {
{ 1, "SetID:212:n" }, -- Warlock
{ 3, "SetID:211:n" }, -- Priest
{ 16, "SetID:210:n" }, -- Mage
{ 5, "SetID:213:n" }, -- Rogue
{ 20, "SetID:214:n" }, -- Druid
{ 7, "SetID:215:n" }, -- Hunter
{ 9, "SetID:218:n" }, -- Warrior
{ 24, "SetID:217:n" }, -- Paladin
},

[HORDE_DIFF] = {
{ 1, "f730rep5" },
{ 2, 19318 }, -- Bottled Alterac Spring Water
{ 3, 19307 }, -- Alterac Heavy Runecloth Bandage
{ 4, 17349 }, -- Superior Healing Draught
{ 5, 17352 }, -- Superior Mana Draught
{ 17, 19032 }, -- Stormpike Battle Tabard
GetItemsFromDiff = ALLIANCE_DIFF,
{ 22, "SetID:216:n" }, -- Shaman
{ 24 }, -- Paladin
},
},
{ -- T3
name = "T3",
[ALLIANCE_DIFF] = {

{ 1, "SetID:529:n" }, -- Warlock
{ 3, "SetID:525:n" }, -- Priest
{ 16, "SetID:526:n" }, -- Mage
{ 5, "SetID:524:n" }, -- Rogue
{ 20, "SetID:521:n" }, -- Druid
{ 7, "SetID:530:n" }, -- Hunter
{ 9, "SetID:523:n" }, -- Warrior
{ 24, "SetID:528:n" }, -- Paladin
},

[HORDE_DIFF] = {
GetItemsFromDiff = ALLIANCE_DIFF,
{ 22, "SetID:527:n" }, -- Shaman
{ 24 }, -- Paladin
},
},
},
Expand Down
55 changes: 55 additions & 0 deletions AtlasLootClassic_Crafting/AtlasLootClassic_Crafting.toc
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
## Interface: 11302
## Author: Lag, Proteyer, Arith
## Version: @project-version@
## Dependencies: AtlasLootClassic
## LoadOnDemand: 1

#@non-debug@
## Title: @localization(locale="enUS", key="Title-Crafting", namespace="ToC")@
## Title-deDE: @localization(locale="deDE", key="Title-Crafting", namespace="ToC")@
## Title-esES: @localization(locale="esES", key="Title-Crafting", namespace="ToC")@
## Title-esMX: @localization(locale="esMX", key="Title-Crafting", namespace="ToC")@
## Title-frFR: @localization(locale="frFR", key="Title-Crafting", namespace="ToC")@
## Title-itIT: @localization(locale="itIT", key="Title-Crafting", namespace="ToC")@
## Title-koKR: @localization(locale="koKR", key="Title-Crafting", namespace="ToC")@
## Title-ptBR: @localization(locale="ptBR", key="Title-Crafting", namespace="ToC")@
## Title-ruRU: @localization(locale="ruRU", key="Title-Crafting", namespace="ToC")@
## Title-zhCN: @localization(locale="zhCN", key="Title-Crafting", namespace="ToC")@
## Title-zhTW: @localization(locale="zhTW", key="Title-Crafting", namespace="ToC")@
## Notes: @localization(locale="enUS", key="Notes-Crafting", namespace="ToC")@
## Notes-deDE: @localization(locale="deDE", key="Notes-Crafting", namespace="ToC")@
## Notes-esES: @localization(locale="esES", key="Notes-Crafting", namespace="ToC")@
## Notes-esMX: @localization(locale="esMX", key="Notes-Crafting", namespace="ToC")@
## Notes-frFR: @localization(locale="frFR", key="Notes-Crafting", namespace="ToC")@
## Notes-itIT: @localization(locale="itIT", key="Notes-Crafting", namespace="ToC")@
## Notes-koKR: @localization(locale="koKR", key="Notes-Crafting", namespace="ToC")@
## Notes-ptBR: @localization(locale="ptBR", key="Notes-Crafting", namespace="ToC")@
## Notes-ruRU: @localization(locale="ruRU", key="Notes-Crafting", namespace="ToC")@
## Notes-zhCN: @localization(locale="zhCN", key="Notes-Crafting", namespace="ToC")@
## Notes-zhTW: @localization(locale="zhTW", key="Notes-Crafting", namespace="ToC")@
#@end-non-debug@
#@debug@
## Title: AtlasLootClassic |cFF0099FF[Crafting]|r
## Title-deDE: AtlasLootClassic |cFF0099FF[Berufe]|r
## Title-koKR: AtlasLootClassic |cFF0099FF[전문 기술]|r
## Title-ruRU: AtlasLootClassic |cFF0099FF[Создание]|r
## Title-zhCN: AtlasLootClassic |cFF0099FF[专业制造]|r
## Title-zhTW: AtlasLootClassic |cFF0099FF[商業技能]|r

## Notes: AtlasLoot loot tables of Crafting Items
## Notes-deDE: AtlasLoot Verzeichnisse der Berufsgegenstände
## Notes-esES: Tablas de botín de AtlasLoot para objetos fabricados
## Notes-frFR: Tables de butin AtlasLoot des Objets Fabriqués
## Notes-koKR: AtlasLoot 전문 기술의 전리품 목록
## Notes-ruRU: AtlasLoot таблица добычи на создание предметов
## Notes-zhCN: AtlasLoot 《专业制造》物品信息
## Notes-zhTW: AtlasLoot 商業技能物品資料庫
#@end-debug@

## X-Category: Map
## X-License: GPL v2
## X-Website: http://www.atlasloot.net

## X-AtlasLoot-LootModule: 1

data.lua
47 changes: 47 additions & 0 deletions AtlasLootClassic_Crafting/data.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
-----------------------------------------------------------------------
-- Upvalued Lua API.
-----------------------------------------------------------------------
local _G = getfenv(0)
local select = _G.select
local string = _G.string
local format = string.format

-- WoW

-- ----------------------------------------------------------------------------
-- AddOn namespace.
-- ----------------------------------------------------------------------------
local addonname = ...
local AtlasLoot = _G.AtlasLoot
local data = AtlasLoot.ItemDB:Add(addonname, 1)

local AL = AtlasLoot.Locales
local ALIL = AtlasLoot.IngameLocales

local NORMAL_DIFF = data:AddDifficulty(AL["Normal"], "n", 1)
local RAID20_DIFF = data:AddDifficulty(AL["20 Raid"], "r20", 9)
local RAID40_DIFF = data:AddDifficulty(AL["40 Raid"], "r40", 9)

local NORMAL_ITTYPE = data:AddItemTableType("Item", "Item")

local QUEST_EXTRA_ITTYPE = data:AddExtraItemTableType("Quest")
local PRICE_EXTRA_ITTYPE = data:AddExtraItemTableType("Price")

local DUNGEON_CONTENT = data:AddContentType(AL["Dungeons"], ATLASLOOT_DUNGEON_COLOR)
local RAID20_CONTENT = data:AddContentType(AL["20 Raids"], ATLASLOOT_RAID20_COLOR)
local RAID40_CONTENT = data:AddContentType(AL["40 Raids"], ATLASLOOT_RAID40_COLOR)

data["DUMMY"] = {
name = "DUMMY",
ContentType = DUNGEON_CONTENT,
LoadDifficulty = NORMAL_DIFF,
items = {
{
name = "DUMMY",
[NORMAL_DIFF] = {
{ 1, 19318 }, -- Bottled Alterac Spring Water
},
},
},

}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
## Notes: AtlasLoot loot tables from Dungeons and Raids
#@end-debug@

## X-eMail: [email protected]
## X-Category: Map
## X-License: GPL v2

Expand Down

0 comments on commit ba1619f

Please sign in to comment.