coa.9: revert scale default + crash fixes + personal/realm bank + woodworking
release / release (push) Successful in 5s
release / release (push) Successful in 5s
- Revert UIScale default 1.4->1.0 (scaling only zoomed, no extra content; real larger layout tracked separately). Apply saved scale on open, default 1.0. - Fix Options:Get/Set nil 'options' crash (TabOptions.lua:442). - Guild Members: guard Level_OnClick against cleared/stale row IDs. - Personal + Realm bank tracking ported from coa-bagnon (BANK_PERMISSIONS_PAYLOAD detection; personal per-char, realm per-realm; Search + BagUsage surfacing). - Woodcutting/Woodworking columns on Skills tab (CoA custom professions).
This commit is contained in:
@@ -77,6 +77,22 @@ local function _GetRidingRank(character)
|
||||
return _GetSkillInfoByCategory(character, L["Secondary Skills"], L["Riding"])
|
||||
end
|
||||
|
||||
-- CoA (Ascension Vol'jin) adds two custom professions on top of the vanilla 15:
|
||||
-- Woodcutting (gathering, base spell 13977860) and Woodworking (crafting,
|
||||
-- ranks 1005008-1005011). They register as normal skill lines in the in-game
|
||||
-- skill UI under their English names "Woodcutting" / "Woodworking" (confirmed
|
||||
-- against coa-professionmenu, which reads them via GetSkillLineInfo by name).
|
||||
-- ScanSkills() already buckets them by whatever category header they sit under,
|
||||
-- so a name-based lookup across all categories retrieves them regardless of the
|
||||
-- header. On non-CoA realms the skill simply doesn't exist and these return 0, 0.
|
||||
local function _GetWoodcuttingRank(character)
|
||||
return _GetSkillInfo(character, "Woodcutting")
|
||||
end
|
||||
|
||||
local function _GetWoodworkingRank(character)
|
||||
return _GetSkillInfo(character, "Woodworking")
|
||||
end
|
||||
|
||||
local PublicMethods = {
|
||||
GetPrimaryProfessions = _GetPrimaryProfessions,
|
||||
GetSecondaryProfessions = _GetSecondaryProfessions,
|
||||
@@ -86,6 +102,8 @@ local PublicMethods = {
|
||||
GetCookingRank = _GetCookingRank,
|
||||
GetFishingRank = _GetFishingRank,
|
||||
GetRidingRank = _GetRidingRank,
|
||||
GetWoodcuttingRank = _GetWoodcuttingRank,
|
||||
GetWoodworkingRank = _GetWoodworkingRank,
|
||||
}
|
||||
|
||||
function addon:OnInitialize()
|
||||
@@ -100,6 +118,8 @@ function addon:OnInitialize()
|
||||
DataStore:SetCharacterBasedMethod("GetCookingRank")
|
||||
DataStore:SetCharacterBasedMethod("GetFishingRank")
|
||||
DataStore:SetCharacterBasedMethod("GetRidingRank")
|
||||
DataStore:SetCharacterBasedMethod("GetWoodcuttingRank")
|
||||
DataStore:SetCharacterBasedMethod("GetWoodworkingRank")
|
||||
end
|
||||
|
||||
function addon:OnEnable()
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
## Title: DataStore_Skills
|
||||
## Notes: Stores information about character skills
|
||||
## Author: Thaoky (EU-Marécages de Zangar)
|
||||
## Version: 3.3.002
|
||||
## Version: 3.3.002-coa.9
|
||||
## Dependencies: DataStore
|
||||
## OptionalDeps: Ace3
|
||||
## SavedVariables: DataStore_SkillsDB
|
||||
|
||||
Reference in New Issue
Block a user