Skip to content

Commit 94a340a

Browse files
committed
Fix the Renown Label on the Reputation Bar
1 parent 93d314b commit 94a340a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: ElvUI/Core/Modules/DataBars/Reputation.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function DB:ReputationBar_Update()
7979

8080
reaction, currentReactionThreshold, nextReactionThreshold = 10, 0, majorFactionData.renownLevelThreshold
8181
currentStanding = C_MajorFactions_HasMaximumRenown(factionID) and majorFactionData.renownLevelThreshold or majorFactionData.renownReputationEarned or 0
82-
standing = format('%s%s %s|r', renownHex, RENOWN_LEVEL_LABEL, majorFactionData.renownLevel)
82+
standing = format('%s%s|r', renownHex, RENOWN_LEVEL_LABEL:format(majorFactionData.renownLevel))
8383

8484
DB:ReputationBar_QuestRep(factionID)
8585
end
@@ -186,7 +186,7 @@ function DB:ReputationBar_OnEnter()
186186
local majorFactionData = C_MajorFactions_GetMajorFactionData(factionID)
187187
currentStanding = (C_MajorFactions_HasMaximumRenown(factionID) and majorFactionData.renownLevelThreshold) or majorFactionData.renownReputationEarned or 0
188188
nextReactionThreshold = majorFactionData.renownLevelThreshold
189-
GameTooltip:AddDoubleLine(RENOWN_LEVEL_LABEL .. majorFactionData.renownLevel, format('%d / %d (%d%%)', GetValues(currentStanding, 0, nextReactionThreshold)), BLUE_FONT_COLOR.r, BLUE_FONT_COLOR.g, BLUE_FONT_COLOR.b, 1, 1, 1)
189+
GameTooltip:AddDoubleLine(RENOWN_LEVEL_LABEL:format(majorFactionData.renownLevel), format('%d / %d (%d%%)', GetValues(currentStanding, 0, nextReactionThreshold)), BLUE_FONT_COLOR.r, BLUE_FONT_COLOR.g, BLUE_FONT_COLOR.b, 1, 1, 1)
190190

191191
local current, _, percent = GetValues(QuestRep, 0, nextReactionThreshold)
192192
GameTooltip:AddDoubleLine('Reputation from Quests', format('%d (%d%%)', current, percent), nil, nil, nil, 1, 1, 1)

0 commit comments

Comments
 (0)