From 0e19e606b21b520372e8996a9ace107b3cc0b93e Mon Sep 17 00:00:00 2001 From: Infus Date: Fri, 9 Dec 2022 20:23:37 +0100 Subject: [PATCH] Add Profession Slots to Item Triggers Not sure if they are actually useful, but at least you can display these now. --- .luacheckrc | 9 +++++++++ WeakAuras/Types.lua | 17 ++++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/.luacheckrc b/.luacheckrc index d3e144709d..212dbed2ab 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -7637,6 +7637,8 @@ globals = { "CONVERT_TO_PARTY", "CONVERT_TO_RAID", "CONVERT_TO_RAID_LABEL", + "COOKINGGEAR0SLOT", + "COOKINGTOOLSLOT", "COOLDOWN_DURATION_DAYS", "COOLDOWN_DURATION_HOURS", "COOLDOWN_DURATION_MIN", @@ -10545,6 +10547,7 @@ globals = { "FIRST_AVAILABLE_TOOLTIP", "FIRST_NUMBER_CAP", "FIRST_NUMBER_CAP_NO_SPACE", + "FISHINGTOOLSLOT", "FIX_LAG", "FLAG_COUNT_TEMPLATE", "FLASH_LOW_HEALTH_WARNING", @@ -14494,6 +14497,12 @@ globals = { "PROFICIENCIES", "PROFICIENCIES_COLON", "PROFICIENCY_NEEDED", + "PROF0GEAR0SLOT", + "PROF0GEAR1SLOT", + "PROF0TOOLSLOT", + "PROF1GEAR0SLOT", + "PROF1GEAR1SLOT", + "PROF1TOOLSLOT", "PROJECTED_CONQUEST_CAP", "PROJECTED_TEXTURES", "PROVING_GROUNDS_SCORE", diff --git a/WeakAuras/Types.lua b/WeakAuras/Types.lua index 094fb549ab..cc00d53617 100644 --- a/WeakAuras/Types.lua +++ b/WeakAuras/Types.lua @@ -2773,7 +2773,16 @@ Private.item_slot_types = { [15] = BACKSLOT, [16] = MAINHANDSLOT, [17] = SECONDARYHANDSLOT, - [19] = TABARDSLOT + [19] = TABARDSLOT, + [20] = L["1. Professsion Tool"], + [21] = L["1. Profession 1. Accessory"], + [22] = L["1. Profession 2. Accessory"], + [23] = L["2. Professsion Tool"], + [24] = L["2. Profession 1. Accessory"], + [25] = L["2. Profession 2. Accessory"], + [26] = COOKINGTOOLSLOT, + [27] = COOKINGGEAR0SLOT, + [28] = FISHINGTOOLSLOT, } Private.charges_change_type = { @@ -3751,6 +3760,9 @@ if WeakAuras.IsClassic() then Private.threat_unit_types.focus = nil Private.item_slot_types[0] = AMMOSLOT Private.item_slot_types[18] = RANGEDSLOT + for slot = 20, 28 do + Private.item_slot_types[slot] = nil + end Private.talent_extra_option_types[0] = nil Private.talent_extra_option_types[2] = nil @@ -3772,6 +3784,9 @@ end if WeakAuras.IsBCCOrWrath() then Private.item_slot_types[0] = AMMOSLOT Private.item_slot_types[18] = RANGEDSLOT + for slot = 20, 28 do + Private.item_slot_types[slot] = nil + end Private.talent_extra_option_types[0] = nil Private.talent_extra_option_types[2] = nil Private.multiUnitId.boss = nil