Skip to content

Commit

Permalink
Add Profession Slots to Item Triggers
Browse files Browse the repository at this point in the history
Not sure if they are actually useful, but at least you can display these
now.
  • Loading branch information
InfusOnWoW authored and Stanzilla committed Dec 9, 2022
1 parent 3449948 commit 0e19e60
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .luacheckrc
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -14494,6 +14497,12 @@ globals = {
"PROFICIENCIES",
"PROFICIENCIES_COLON",
"PROFICIENCY_NEEDED",
"PROF0GEAR0SLOT",
"PROF0GEAR1SLOT",
"PROF0TOOLSLOT",
"PROF1GEAR0SLOT",
"PROF1GEAR1SLOT",
"PROF1TOOLSLOT",
"PROJECTED_CONQUEST_CAP",
"PROJECTED_TEXTURES",
"PROVING_GROUNDS_SCORE",
Expand Down
17 changes: 16 additions & 1 deletion WeakAuras/Types.lua
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 0e19e60

Please sign in to comment.