Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
arliang committed Oct 17, 2022
0 parents commit 836e28e
Show file tree
Hide file tree
Showing 6 changed files with 329 additions and 0 deletions.
21 changes: 21 additions & 0 deletions AtlasLootClassic_WLK_BiS.toc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## Interface: 30400
## Author: Arliang
## Version: v3.0.2
## Dependencies: AtlasLootClassic, Bistooltip
## LoadOnDemand: 1

## Title: AtlasLootClassic |cFF0099FF[BestInSlot]|r
## Title-zhCN: AtlasLoot经典版(WLK) |cFF0099FF[BiS收藏品]|r
## Title-zhTW: 副本戰利品查詢經典版(WLK) |cFF0099FF[BiS收藏]|r
## Notes: AtlasLoot loot tables from Collections
## Notes-zhCN: 收藏BIS物品资料库(WLK)。
## Notes-zhTW: 收藏BIS物品資料庫(WLK)。

## X-Category: Map
## X-License: GPL v2

## X-AtlasLootClassic-LootModule: 1

Locales\Locales.xml

data.lua
4 changes: 4 additions & 0 deletions Locales/Locales.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
<Script file="constants.cn.lua"/>
<Script file="constants.tw.lua"/>
</Ui>
142 changes: 142 additions & 0 deletions Locales/constants.cn.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
local AL = _G.AtlasLoot.GetLocales("zhCN")

if not AL then return end

-- These localization strings are translated on Curseforge: https://www.curseforge.com/wow/addons/atlaslootclassic/localization
-- Collections
AL["Before Raid"] = "团本前"
AL["P1"] = "P1"

AL["Death knight Blood tank BiS"] = "鲜血DK BiS";
AL["Death knight Frost BiS"] = "冰霜DK BiS";
AL["Death knight Unholy BiS"] = "邪恶DK BiS";
AL["Druid Balance BiS"] = "鸟德BiS";
AL["Druid Feral tank BiS"] = "熊德BiS";
AL["Druid Feral dps BiS"] = "猫德BiS";
AL["Druid Restoration BiS"] = "奶德BiS";
AL["Hunter Beast mastery BiS"] = "兽王猎BiS";
AL["Hunter Marksmanship BiS"] = "射击猎BiS";
AL["Hunter Survival BiS"] = "生存猎BiS";
AL["Mage Arcane BiS"] = "奥法BiS";
AL["Mage Fire BiS"] = "火法BiS";
AL["Mage Fire FFB BiS"] = "霜火法BiS";
AL["Mage Frost BiS"] = "冰法BiS";
AL["Paladin Holy BiS"] = "奶骑BiS";
AL["Paladin Protection BiS"] = "防骑BiS";
AL["Paladin Retribution BiS"] = "惩戒骑BiS";
AL["Priest Discipline BiS"] = "戒律牧BiS";
AL["Priest Holy BiS"] = "神牧BiS";
AL["Priest Shadow BiS"] = "暗牧BiS";
AL["Rogue Assassination BiS"] = "暗杀贼BiS";
AL["Rogue Combat BiS"] = "战斗贼BiS";
AL["Shaman Elemental BiS"] = "元素萨BiS";
AL["Shaman Enhancement BiS"] = "增强萨BiS";
AL["Shaman Restoration BiS"] = "奶萨BiS";
AL["Warlock Affliction BiS"] = "痛苦术BiS";
AL["Warlock Demonology BiS"] = "恶魔术BiS";
AL["Warlock Destruction BiS"] = "毁灭术BiS";
AL["Warrior Protection BiS"] = "防战BiS";
AL["Warrior Fury BiS"] = "狂战BiS";
AL["Warrior Arms BiS"] = "武器战BiS";


AL["Head"] = "头部"
AL["Neck"] = "颈部"

AL["Shoulder"] = "肩膀"

AL["Back"] = "背部"
AL["Chest"] = "胸部"
AL["Wrist"] = "护腕"
AL["Hands"] = "手套"
AL["Waist"] = "腰带"
AL["Rings"] = "戒指"

AL["Finger"] = "戒指"

AL["Legs"] = "腿部"
AL["Feet"] = ""
AL["Trinkets"] = "饰品"

AL["Trinket"] = "饰品"
AL["Weapon"] = "武器"

AL["Onehand"] = "单手"
AL["Offhand"] = "副手"
AL["Twohand"] = "双手"
AL["Ranged"] = "远程"



-- AL["%s Sets"] = "%s 组合"
-- AL["'%s' Vendor"] = "'%s' 商人"
-- AL["Abyssal Dukes"] = "深渊公爵"
-- AL["Abyssal Lords"] = "深渊议会高层"
-- AL["Abyssal Templars"] = "深渊圣殿骑士"
-- AL["Ahune"] = "埃霍恩"
-- AL["Avalanchion"] = "阿瓦兰奇奥"
-- AL["Azure Templar"] = "碧蓝圣殿骑士"
-- AL["Baron Charr"] = "火焰男爵查尔"
-- AL["Baron Kazum"] = "卡苏姆男爵"
-- AL["Box of Chocolates"] = "一盒巧克力"
-- AL["Brewfest"] = "美酒节"
-- AL["Brightly Colored Egg"] = "彩蛋节"
-- AL["Burning Crusade"] = "燃烧的远征"
-- AL["Childrens Week"] = "儿童周"
-- AL["Classic"] = "经典"
-- AL["Crimson Templar"] = "赤红圣殿骑士"
-- AL["Drops"] = "掉落"
-- AL["Dungeon Set %s"] = "地下城 组合 %s"
-- AL["Dungeon Sets"] = "地下城 组合"
-- AL["Earthen Templar"] = "土色圣殿骑士"
-- AL["Elemental Invasions"] = "元素入侵"
-- AL["Equip"] = "装备"
-- AL["Faction Mounts"] = "阵营坐骑"
-- AL["Feast of Winter Veil"] = "冬幕节"
-- AL["Festive Gift"] = "节日礼物"
-- AL["First Prize"] = "第一名奖励"
-- AL["Food"] = "进食"
-- AL["Gaily Wrapped Present"] = "微微震动的礼物"
-- AL["Gently Shaken Gift"] = "精美的礼品"
-- AL["Gift of Adoration"] = "爱慕的礼物"
-- AL["Graveyard - Headless Horseman"] = "墓地 - 无头骑士"
-- AL["Gurubashi Arena"] = "古拉巴什竞技场"
-- AL["Hallow's End"] = "万圣节"
-- AL["Harvest Festival"] = "收获节"
-- AL["High Marshal Whirlaxis"] = "大元帅维拉希斯"
-- AL["Hoary Templar"] = "苍白圣殿骑士"
-- AL["Legendarys"] = "传说"
-- AL["Lord Blackwood"] = "布莱克伍德公爵"
-- AL["Lord Skwol"] = "斯古恩男爵"
-- AL["Love is in the Air"] = "情人节"
-- AL["Lucky Red Envelope"] = "红包"
-- AL["Lunar Festival"] = "春节"
-- AL["Lunar Festival Fireworks Pack"] = "春节烟花包"
-- AL["Masks"] = "面具"
-- AL["Midsummer Festival"] = "仲夏火焰节"
-- AL["Noblegarden"] = "复活节"
-- AL["One-Handed Weapons"] = "单手武器"
-- AL["Prince Skaldrenox"] = "斯卡德诺斯克王子"
-- AL["Princess Tempestria"] = "泰比斯蒂亚公主"
-- AL["Ranged Weapons"] = "远程武器"
-- AL["Rare Fish"] = "稀有鱼种"
-- AL["Rare Fish Rewards"] = "稀有鱼种奖励"
-- AL["Revanchion"] = "雷瓦克安"
-- AL["Scarlet Monastery - Graveyard"] = "血色修道院 - 墓地"
-- AL["Scorn"] = "瑟克恩"
-- AL["Scourge Invasion"] = "天灾入侵"
-- AL["Silithus Abyssal"] = "深渊议会"
-- AL["Smokywood Pastures"] = "熏木农场"
-- AL["Smokywood Pastures Special Gift"] = "熏木农场特殊礼物"
-- AL["Stranglethorn Fishing Extravaganza"] = "荆棘谷钓鱼大赛"
-- AL["The Duke of Cynders"] = "灰烬公爵"
-- AL["The Duke of Fathoms"] = "深渊公爵"
-- AL["The Duke of Shards"] = "碎石公爵"
-- AL["The Duke of Zephyrs"] = "微风公爵"
-- AL["The Windreaver"] = "烈风掠夺者"
-- AL["Tier Sets"] = "等级套装"
-- AL["Two-Handed Weapons"] = "双手武器"
-- AL["Unobtainable"] = "无法获得"
-- AL["Wands"] = "魔杖"
-- AL["World Epics"] = "世界史诗"
-- AL["World Events"] = "世界事件"
70 changes: 70 additions & 0 deletions Locales/constants.tw.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
local AL = _G.AtlasLoot.GetLocales("zhTW")

if not AL then return end
local AL = _G.AtlasLoot.GetLocales("zhCN")

if not AL then return end

-- These localization strings are translated on Curseforge: https://www.curseforge.com/wow/addons/atlaslootclassic/localization
-- Collections
AL["Before Raid"] = "團本前"
AL["P1"] = "P1"

AL["Death knight Blood tank BiS"] = "鮮血DK BiS"
AL["Death knight Frost BiS"] = "冰霜DK BiS"
AL["Death knight Unholy BiS"] = "邪惡DK BiS"
AL["Druid Balance BiS"] = "鳥德BiS"
AL["Druid Feral tank BiS"] = "熊德BiS"
AL["Druid Feral dps BiS"] = "貓德BiS"
AL["Druid Restoration BiS"] = "奶德BiS"
AL["Hunter Beast mastery BiS"] = "獸王獵BiS"
AL["Hunter Marksmanship BiS"] = "射擊獵BiS"
AL["Hunter Survival BiS"] = "生存獵BiS"
AL["Mage Arcane BiS"] = "奧法BiS"
AL["Mage Fire BiS"] = "火法BiS"
AL["Mage Fire FFB BiS"] = "霜火法BiS"
AL["Mage Frost BiS"] = "冰法BiS"
AL["Paladin Holy BiS"] = "奶騎BiS"
AL["Paladin Protection BiS"] = "防騎BiS"
AL["Paladin Retribution BiS"] = "懲戒騎BiS"
AL["Priest Discipline BiS"] = "戒律牧BiS"
AL["Priest Holy BiS"] = "神牧BiS"
AL["Priest Shadow BiS"] = "暗牧BiS"
AL["Rogue Assassination BiS"] = "暗殺賊BiS"
AL["Rogue Combat BiS"] = "戰鬥賊BiS"
AL["Shaman Elemental BiS"] = "元素薩BiS"
AL["Shaman Enhancement BiS"] = "增強薩BiS"
AL["Shaman Restoration BiS"] = "奶薩BiS"
AL["Warlock Affliction BiS"] = "痛苦術BiS"
AL["Warlock Demonology BiS"] = "惡魔術BiS"
AL["Warlock Destruction BiS"] = "毀滅術BiS"
AL["Warrior Protection BiS"] = "防戰BiS"
AL["Warrior Fury BiS"] = "狂戰BiS"
AL["Warrior Arms BiS"] = "武器戰BiS"


AL["Head"] = "頭部"
AL["Neck"] = "頸部"

AL["Shoulder"] = "肩膀"

AL["Back"] = "背部"
AL["Chest"] = "胸部"
AL["Wrist"] = "護腕"
AL["Hands"] = "手套"
AL["Waist"] = "腰帶"
AL["Rings"] = "戒指"

AL["Finger"] = "戒指"

AL["Legs"] = "腿部"
AL["Feet"] = ""
AL["Trinkets"] = "飾品"

AL["Trinket"] = "飾品"
AL["Weapon"] = "武器"

AL["Onehand"] = "單手"
AL["Offhand"] = "副手"
AL["Twohand"] = "雙手"
AL["Ranged"] = "遠程"
5 changes: 5 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Data from Bistooltip.

**Notice**: Bistooltip addon is required. please ensure you have installed Bistooltip if it doesn't work.

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

-- WoW
local function C_Map_GetAreaInfo(id)
local d = C_Map.GetAreaInfo(id)
return d or "GetAreaInfo"..id
end

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

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

local GetForVersion = AtlasLoot.ReturnForGameVersion

local BEFORE_RAID_DIFF = data:AddDifficulty(AL["Before Raid"], "n", 1, nil, true)
local P1_DIFF = data:AddDifficulty(AL["P1"], "h", 2, nil, true)

local DIFF_TRANSFORM = {
["PR"] = BEFORE_RAID_DIFF,
["T7"] = P1_DIFF
}
local ALLIANCE_DIFF, HORDE_DIFF, LOAD_DIFF
if UnitFactionGroup("player") == "Horde" then
HORDE_DIFF = data:AddDifficulty(FACTION_HORDE, "horde", nil, 1)
ALLIANCE_DIFF = data:AddDifficulty(FACTION_ALLIANCE, "alliance", nil, 1)
LOAD_DIFF = HORDE_DIFF
else
ALLIANCE_DIFF = data:AddDifficulty(FACTION_ALLIANCE, "alliance", nil, 1)
HORDE_DIFF = data:AddDifficulty(FACTION_HORDE, "horde", nil, 1)
LOAD_DIFF = ALLIANCE_DIFF
end

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

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

local VENDOR_CONTENT = data:AddContentType(AL["Vendor"], ATLASLOOT_DUNGEON_COLOR)
local SET_CONTENT = data:AddContentType(AL["Sets"], ATLASLOOT_PVP_COLOR)
local WORLD_BOSS_CONTENT = data:AddContentType(AL["World Bosses"], ATLASLOOT_WORLD_BOSS_COLOR)
local COLLECTIONS_CONTENT = data:AddContentType(AL["Collections"], ATLASLOOT_COLLECTIONS_COLOR)
local WORLD_EVENT_CONTENT = data:AddContentType(AL["World Events"], ATLASLOOT_SEASONALEVENTS_COLOR)

-- local x = {["a"]=1, ['b']=2, 1,2,3,4}
-- for k, v in pairs(x) do
-- print(k, v, type(k), type(v))
-- end

for className, talents in pairs(Bistooltip_bislists) do
for talent, parts in pairs(talents) do
data[className .. talent] = data[className .. talent] or {
name = AL[string.format("%s %s BiS", className, talent)],
ContentType = SET_CONTENT,
items = {}
}
for part, slots in pairs(parts) do
for slot, items in pairs(slots) do
-- local dbItems, dbItem
data[className .. talent].items = data[className .. talent].items or {}
data[className .. talent].items[slot] = data[className .. talent].items[slot] or {}
data[className .. talent].items[slot][DIFF_TRANSFORM[part]] = data[className .. talent].items[slot][DIFF_TRANSFORM[part]] or {}

for i = 1, #items do
table.insert(data[className .. talent].items[slot][DIFF_TRANSFORM[part]], {i, items[i]})
end
-- for i = 1, items.enhs do
-- TODOS: enchant here
-- end
data[className .. talent].items[slot].name = AL[items.slot_name]
end
end
end
end

0 comments on commit 836e28e

Please sign in to comment.