Skip to content

Commit

Permalink
final message tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
TannerShmoog committed Oct 5, 2022
1 parent 7aa3e37 commit da16d73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Globals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local addonName, addon = ...
local L = LibStub('AceLocale-3.0'):GetLocale('Groupie')

--Update this with each push to curse, this will be used for version checks
addon.version = 1.40
addon.version = 1.41

--Supported localizations, we only load the addon for these
addon.validLocales = { "enGB", "enUS" }
Expand Down
8 changes: 4 additions & 4 deletions GroupBrowser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -894,8 +894,8 @@ function GroupieGroupBrowser:CreateMsg(isLFM, isLFG, instanceName, isHeroic, gro
local action = isLFM and "LFM" or "LFG"
local forwhat = format("%s%s", (isHeroic and "Heroic " or ""), instanceName)

local groupStatus = groupSize > numMembers and format("%s in Group", numMembers) or ""
if (groupSize == 10 or groupSize == 25) and addon.groupieInstanceData[instanceName] ~= nil then
local groupStatus = format("%s in Group", numMembers)
if (groupSize == 10 or groupSize == 25) and Groupie.groupieInstanceData[instanceName] ~= nil then
forwhat = forwhat .. " " .. tonumber(groupSize)
groupStatus = groupSize > numMembers and format("%s/%s in Group", numMembers, groupSize) or ""
end
Expand All @@ -905,7 +905,7 @@ function GroupieGroupBrowser:CreateMsg(isLFM, isLFG, instanceName, isHeroic, gro
roleStatus = roleStatus .. "Tank "
end
if healerSpots > 0 then
roleStatus = roleStatus .. "Heals "
roleStatus = roleStatus .. "Healer "
end
if damageSpots > 0 then
roleStatus = roleStatus .. "DPS "
Expand All @@ -914,7 +914,7 @@ function GroupieGroupBrowser:CreateMsg(isLFM, isLFG, instanceName, isHeroic, gro
roleStatus = roleStatus:gsub(" ", ", ")
if tankSpots > 0 or healerSpots > 0 or damageSpots > 0 then
roleStatus = "Need " .. roleStatus
roleStatus = roleStatus:gsub("DPS", " DPS")
roleStatus = roleStatus:gsub("DPS", format("%d DPS", damageSpots))
end

local rolelfg = leaderRole == "NOROLE" and "" or (leaderRole == "DAMAGER" and "DPS" or _G[leaderRole])
Expand Down

0 comments on commit da16d73

Please sign in to comment.