Skip to content

Commit

Permalink
Add Mark of the Wild to Consumables and ReadyCheck
Browse files Browse the repository at this point in the history
Closes #120
  • Loading branch information
nebularg committed Nov 15, 2022
1 parent 3174f3d commit a9c4b3f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 12 deletions.
13 changes: 9 additions & 4 deletions modules/Consumables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,15 @@ local raidBuffs = {
{ -- Attack Power
6673, -- Battle Shout
},
{ -- Versatility
1126, -- Mark of the Wild
},
}
local raidBuffNames = {
ITEM_MOD_INTELLECT_SHORT,
ITEM_MOD_STAMINA_SHORT,
ITEM_MOD_ATTACK_POWER_SHORT,
(GetSpellInfo(1459)), -- ITEM_MOD_INTELLECT_SHORT,
(GetSpellInfo(21562)), -- ITEM_MOD_STAMINA_SHORT,
(GetSpellInfo(6673)), -- ITEM_MOD_ATTACK_POWER_SHORT,
(GetSpellInfo(1126)), -- ITEM_MOD_VERSATILITY,
}

---------------------------------------
Expand Down Expand Up @@ -288,7 +292,7 @@ function module:OnRegister()
{[YES] = 1, [NO] = 0},
{[YES] = 1, [NO] = 0},
{[NO] = ""},
{["1/3"] = 1, ["2/3"] = 2, ["3/3"] = 3, ["0/3"] = 0}
{["1/4"] = 1, ["2/4"] = 2, ["3/4"] = 3, ["4/4"] = 4, ["0/4"] = 0}
)

oRA.RegisterCallback(self, "OnStartup")
Expand Down Expand Up @@ -368,6 +372,7 @@ do
[1459] = true, -- Arcane Intellect
[21562] = true, -- Power Word: Fortitude
[6637] = true, -- Battle Shout
[1126] = true, -- Mark of the Wild

-- Rune
[367405] = true, -- Eternal Augmentation
Expand Down
24 changes: 16 additions & 8 deletions modules/ReadyCheck.lua
Original file line number Diff line number Diff line change
Expand Up @@ -316,23 +316,28 @@ local function addIconAndName(frame)
-- Battle Shout
local name, _, icon = GetSpellInfo(6673)
frame.GroupBuff3 = addBuffFrame("GroupBuff3", frame, name, icon, "RIGHT", -6 - (0*BUFF_ICON_SIZE), 0)
frame.GroupBuff3.groupBuff = ITEM_MOD_ATTACK_POWER_SHORT
frame.GroupBuff3.groupBuff = name -- ITEM_MOD_ATTACK_POWER_SHORT

-- Power Word: Fortitude
name, _, icon = GetSpellInfo(21562)
frame.GroupBuff2 = addBuffFrame("GroupBuff2", frame, name, icon, "RIGHT", -6 - (1*BUFF_ICON_SIZE), 0)
frame.GroupBuff2.groupBuff = ITEM_MOD_STAMINA_SHORT
frame.GroupBuff2.groupBuff = name -- ITEM_MOD_STAMINA_SHORT

-- Arcane Intellect
name, _, icon = GetSpellInfo(1459)
frame.GroupBuff1 = addBuffFrame("GroupBuff1", frame, name, icon, "RIGHT", -6 - (2*BUFF_ICON_SIZE), 0)
frame.GroupBuff1.groupBuff = ITEM_MOD_INTELLECT_SHORT
frame.GroupBuff1.groupBuff = name -- ITEM_MOD_INTELLECT_SHORT

-- Mark of the Wild
name, _, icon = GetSpellInfo(1126)
frame.GroupBuff4 = addBuffFrame("GroupBuff4", frame, name, icon, "RIGHT", -6 - (3*BUFF_ICON_SIZE), 0)
frame.GroupBuff4.groupBuff = name -- ITEM_MOD_INTELLECT_SHORT

-- consumable buffs
frame.VantusBuff = addBuffFrame("Vantus", frame, "", 1392952, "RIGHT", -6 - (3*BUFF_ICON_SIZE), 0) -- 1392952="Interface/Icons/70_inscription_vantus_rune_nightmare"
frame.RuneBuff = addBuffFrame("Rune", frame, L.noRune, 134425, "RIGHT", -6 - (4*BUFF_ICON_SIZE), 0) -- 134425="Interface\\Icons\\inv_misc_rune_12"
frame.FlaskBuff = addBuffFrame("Flask", frame, L.noFlask, 967546, "RIGHT", -6 - (5*BUFF_ICON_SIZE), 0) -- 967546="Interface\\Icons\\trade_alchemy_dpotion_c22"
frame.FoodBuff = addBuffFrame("Food", frame, L.noFood, 136000, "RIGHT", -6 - (6*BUFF_ICON_SIZE), 0) -- 136000="Interface\\Icons\\spell_misc_food"
frame.VantusBuff = addBuffFrame("Vantus", frame, "", 1392952, "RIGHT", -6 - (4*BUFF_ICON_SIZE), 0) -- 1392952="Interface/Icons/70_inscription_vantus_rune_nightmare"
frame.RuneBuff = addBuffFrame("Rune", frame, L.noRune, 134425, "RIGHT", -6 - (5*BUFF_ICON_SIZE), 0) -- 134425="Interface\\Icons\\inv_misc_rune_12"
frame.FlaskBuff = addBuffFrame("Flask", frame, L.noFlask, 967546, "RIGHT", -6 - (6*BUFF_ICON_SIZE), 0) -- 967546="Interface\\Icons\\trade_alchemy_dpotion_c22"
frame.FoodBuff = addBuffFrame("Food", frame, L.noFood, 136000, "RIGHT", -6 - (7*BUFF_ICON_SIZE), 0) -- 136000="Interface\\Icons\\spell_misc_food"
local text = frame.FoodBuff:CreateFontString(nil, "OVERLAY")
text:SetPoint("BOTTOMRIGHT")
text:SetJustifyH("RIGHT")
Expand Down Expand Up @@ -373,7 +378,7 @@ local function createBottomFrame()
end

local function anchorBuffs(f)
local i = 3
local i = 4
if module.db.profile.showVantus then
i = i + 1
f.VantusBuff:SetPoint("RIGHT", -6 - ((i-1)*BUFF_ICON_SIZE), 0)
Expand Down Expand Up @@ -413,13 +418,15 @@ local function setMemberStatus(num, bottom, name, class, update)
f.GroupBuff1:SetShown(not buffs[1])
f.GroupBuff2:SetShown(not buffs[2])
f.GroupBuff3:SetShown(not buffs[3])
f.GroupBuff4:SetShown(not buffs[4])
else
f.FoodBuff:SetShown(food)
f.FlaskBuff:SetShown(flask)
f.RuneBuff:SetShown(rune)
f.GroupBuff1:SetShown(buffs[1])
f.GroupBuff2:SetShown(buffs[2])
f.GroupBuff3:SetShown(buffs[3])
f.GroupBuff4:SetShown(buffs[4])
end
f.VantusBuff:SetShown(vantus and module.db.profile.showVantus)

Expand Down Expand Up @@ -497,6 +504,7 @@ local function setMemberStatus(num, bottom, name, class, update)
f.GroupBuff1:Hide()
f.GroupBuff2:Hide()
f.GroupBuff3:Hide()
f.GroupBuff4:Hide()
end

local color = oRA.classColors[class]
Expand Down

0 comments on commit a9c4b3f

Please sign in to comment.