Enchanting fixes, reverted Crafting module to previous version that s… (#1)
* Enchanting fixes, reverted Crafting module to previous version that supports Ascension specific crafts and Vellums. * Updated enchanting names from DB * Added the remaining Ascension specific recipes * Replace SpellNames2IDs.lua with UnitCastingSpellID * Bugfix: Ascension uses exact quality QueryAuctionItems, TSM was designed for quality or higher * Bugfix: Properly get list of Professions via index * Replaced factionrealm with realm Ascension does not have strict faction seperation * GetTradeSkillCooldown -> SpellHasBaseCooldown GetTradeSkillCooldown only tells you if a spell is on CD, not if it has a CD Data is from DB, which isn't populated fully yet. * Implement backported API GetSpellBaseCooldown * bugfix: hasCD is nil if no cd, not 0
This commit is contained in:
@@ -363,14 +363,14 @@ function TSMAPI:DrawOperationManagement(TSMObj, container, operationName)
|
||||
local operation = TSMObj.operations[operationName]
|
||||
|
||||
local playerList = {}
|
||||
local factionrealmKey = TSM.db.keys.factionrealm
|
||||
for playerName in pairs(TSM.db.factionrealm.characters) do
|
||||
playerList[playerName.." - "..factionrealmKey] = playerName
|
||||
local realmKey = TSM.db.keys.realm
|
||||
for playerName in pairs(TSM.db.realm.characters) do
|
||||
playerList[playerName.." - "..realmKey] = playerName
|
||||
end
|
||||
|
||||
local factionrealmList = {}
|
||||
for factionrealm in pairs(TSM.db.sv.factionrealm) do
|
||||
factionrealmList[factionrealm] = factionrealm
|
||||
local realmList = {}
|
||||
for realm in pairs(TSM.db.sv.realm) do
|
||||
realmList[realm] = realm
|
||||
end
|
||||
|
||||
local groupList = {}
|
||||
@@ -436,9 +436,9 @@ function TSMAPI:DrawOperationManagement(TSMObj, container, operationName)
|
||||
{
|
||||
type = "Dropdown",
|
||||
label = L["Ignore Operation on Faction-Realms:"],
|
||||
list = factionrealmList,
|
||||
list = realmList,
|
||||
relativeWidth = 0.5,
|
||||
settingInfo = {operation, "ignoreFactionrealm"},
|
||||
settingInfo = {operation, "ignorerealm"},
|
||||
multiselect = true,
|
||||
tooltip = L["This operation will be ignored when you're on any character which is checked in this dropdown."],
|
||||
},
|
||||
@@ -612,7 +612,7 @@ function TSMAPI:DrawOperationManagement(TSMObj, container, operationName)
|
||||
end
|
||||
data.module = nil
|
||||
data.ignorePlayer = {}
|
||||
data.ignoreFactionrealm = {}
|
||||
data.ignorerealm = {}
|
||||
data.relationships = {}
|
||||
TSMObj.operations[operationName] = data
|
||||
self:SetText("")
|
||||
@@ -629,7 +629,7 @@ function TSMAPI:DrawOperationManagement(TSMObj, container, operationName)
|
||||
local data = CopyTable(operation)
|
||||
data.module = moduleName
|
||||
data.ignorePlayer = nil
|
||||
data.ignoreFactionrealm = nil
|
||||
data.ignorerealm = nil
|
||||
data.relationships = nil
|
||||
ShowExportFrame(LibStub("AceSerializer-3.0"):Serialize(data))
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user