Skip to content

Commit

Permalink
Tweaked race icons
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Nov 1, 2022
1 parent 632f089 commit 3d7d0f6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions REFlexFunctions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -488,11 +488,12 @@ function RE:GetClassIcon(token, size)
end

function RE:GetRaceIcon(token, size)
if BR[token] == nil then
if RE.RaceIcons[token] ~= nil then
return "|A:"..RE.RaceIcons[token]..":"..size..":"..size.."|a"
elseif BR[token] == nil then
return "|TInterface\\Icons\\INV_Misc_QuestionMark:"..size..":"..size.."|t"
else
token = sgsub(BR[token], "_PL", "")
return "|A:"..RE.RaceIcons[token]..":"..size..":"..size.."|a"
return "|A:"..RE.RaceIcons[sgsub(BR[token], "_PL", "")]..":"..size..":"..size.."|a"
end
end

Expand Down

0 comments on commit 3d7d0f6

Please sign in to comment.