@@ -75,11 +75,10 @@ function DB:ReputationBar_Update()
75
75
if not standing and factionID and E .Retail and C_Reputation_IsMajorFaction (factionID ) then
76
76
local majorFactionData = C_MajorFactions_GetMajorFactionData (factionID )
77
77
local renownColor = DB .db .colors .factionColors [10 ]
78
- local renownHex = E :RGBToHex (renownColor .r , renownColor .g , renownColor .b )
79
78
80
79
reaction , currentReactionThreshold , nextReactionThreshold = 10 , 0 , majorFactionData .renownLevelThreshold
81
80
currentStanding = C_MajorFactions_HasMaximumRenown (factionID ) and majorFactionData .renownLevelThreshold or majorFactionData .renownReputationEarned or 0
82
- standing = format ( ' %s%s|r ' , renownHex , RENOWN_LEVEL_LABEL : format (majorFactionData .renownLevel ))
81
+ standing = E : RGBToHex ( renownColor . r , renownColor . g , renownColor . b , nil , format (RENOWN_LEVEL_LABEL .. ' |r ' , majorFactionData .renownLevel ))
83
82
84
83
DB :ReputationBar_QuestRep (factionID )
85
84
end
@@ -186,7 +185,7 @@ function DB:ReputationBar_OnEnter()
186
185
local majorFactionData = C_MajorFactions_GetMajorFactionData (factionID )
187
186
currentStanding = (C_MajorFactions_HasMaximumRenown (factionID ) and majorFactionData .renownLevelThreshold ) or majorFactionData .renownReputationEarned or 0
188
187
nextReactionThreshold = majorFactionData .renownLevelThreshold
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 )
188
+ GameTooltip :AddDoubleLine (format (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 )
190
189
191
190
local current , _ , percent = GetValues (QuestRep , 0 , nextReactionThreshold )
192
191
GameTooltip :AddDoubleLine (' Reputation from Quests' , format (' %d (%d%%)' , current , percent ), nil , nil , nil , 1 , 1 , 1 )
0 commit comments