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:
Xan-Asc
2023-04-07 03:55:47 -07:00
committed by GitHub
parent d6aaac97af
commit 42dbe9d526
41 changed files with 1122 additions and 4694 deletions
+5 -5
View File
@@ -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"])