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:
@@ -57,16 +57,16 @@ function private:CreateDisenchantBox(frame)
|
||||
targetBox:SetPoint("TOPLEFT", targetBoxLabel, "TOPRIGHT", 5, 0)
|
||||
targetBox:SetPoint("TOPRIGHT", -5, -30)
|
||||
targetBox:SetHeight(20)
|
||||
targetBox:SetText(TSM.db.factionrealm.deMailTarget)
|
||||
targetBox:SetText(TSM.db.realm.deMailTarget)
|
||||
targetBox:SetScript("OnEnterPressed", function(self)
|
||||
TSM.db.factionrealm.deMailTarget = self:GetText():trim()
|
||||
TSM.db.realm.deMailTarget = self:GetText():trim()
|
||||
self:ClearFocus()
|
||||
frame.btn:Update()
|
||||
end)
|
||||
targetBox.tooltip = L["Enter name of the character disenchantable greens should be sent to."].."\n\n"..TSM.SPELLING_WARNING
|
||||
|
||||
local function OnClick()
|
||||
local target = TSM.db.factionrealm.deMailTarget
|
||||
local target = TSM.db.realm.deMailTarget
|
||||
if target == "" then return end
|
||||
local items = {}
|
||||
local hasItems
|
||||
@@ -94,9 +94,9 @@ function private:CreateDisenchantBox(frame)
|
||||
btn:SetScript("OnClick", OnClick)
|
||||
btn.tooltip = L["Click this button to send all disenchantable greens in your bags to the specified character."]
|
||||
btn.Update = function(self)
|
||||
if TSM.db.factionrealm.deMailTarget ~= "" then
|
||||
if TSM.db.realm.deMailTarget ~= "" then
|
||||
self:Enable()
|
||||
self:SetText(format(L["Send Disenchantable Greens to %s"], TSM.db.factionrealm.deMailTarget))
|
||||
self:SetText(format(L["Send Disenchantable Greens to %s"], TSM.db.realm.deMailTarget))
|
||||
else
|
||||
self:Disable()
|
||||
self:SetText(L["No Target Player"])
|
||||
|
||||
@@ -31,7 +31,7 @@ local savedDBDefaults = {
|
||||
showReloadBtn = true,
|
||||
keepMailSpace = 0,
|
||||
},
|
||||
factionrealm = {
|
||||
realm = {
|
||||
deMailTarget = "",
|
||||
mailTargets = {},
|
||||
mailItems = {},
|
||||
@@ -75,7 +75,7 @@ TSM.operationDefaults = {
|
||||
restockGBank = nil,
|
||||
keepQty = 0,
|
||||
ignorePlayer = {},
|
||||
ignoreFactionrealm = {},
|
||||
ignorerealm = {},
|
||||
relationships = {},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user