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:
@@ -121,7 +121,7 @@ local savedDBDefaults = {
|
||||
colorGroupName = true,
|
||||
embeddedTooltip = true,
|
||||
},
|
||||
factionrealm = {
|
||||
realm = {
|
||||
accountKey = nil,
|
||||
characters = {},
|
||||
syncAccounts = {},
|
||||
@@ -161,9 +161,9 @@ function TSM:OnInitialize()
|
||||
TSM:RegisterModule()
|
||||
|
||||
-- create account key for multi-account syncing if necessary
|
||||
TSM.db.factionrealm.accountKey = TSM.db.factionrealm.accountKey or (GetRealmName() .. random(time()))
|
||||
TSM.db.realm.accountKey = TSM.db.realm.accountKey or (GetRealmName() .. random(time()))
|
||||
-- add this character to the list of characters on this realm
|
||||
TSM.db.factionrealm.characters[UnitName("player")] = true
|
||||
TSM.db.realm.characters[UnitName("player")] = true
|
||||
|
||||
-- Initialize default design, and apply defaults for any missing DB values.
|
||||
-- NOTE: We allow missing fonts (such as uninstalled SharedMedia fonts), and
|
||||
|
||||
Reference in New Issue
Block a user