Skip to content

Commit

Permalink
minor tooltip fix for ranged weapons
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexFolland committed Jun 18, 2024
1 parent 42c54a1 commit db92f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AutoGear.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4361,7 +4361,7 @@ function AutoGearTooltipHook(tooltip)
local scoreLinePrefix = (((pawnScaleLocalizedName or pawnScaleName) and pawnScaleColor) and "AutoGear: Pawn \""..pawnScaleColor..(pawnScaleLocalizedName or pawnScaleName)..FONT_COLOR_CODE_CLOSE.."\"" or "AutoGear")
if shouldShowComparisonLine or shouldShowBestSet then
lowestScoringEquippedItemScore = math.floor(lowestScoringEquippedItemScore * 1000) / 1000
tooltip:AddDoubleLine(scoreLinePrefix.." score".." (equipped"..(((not AutoGearIsTwoHandEquipped()) and tooltipItemInfo.isWeaponOrOffHand) and " pair" or (shouldShowBestSet and " set" or "")).."):",
tooltip:AddDoubleLine(scoreLinePrefix.." score".." (equipped"..(((not AutoGearIsTwoHandEquipped()) and tooltipItemInfo.isWeaponOrOffHand and not tooltipItemInfo.isRangedWeapon) and " pair" or (shouldShowBestSet and " set" or "")).."):",
equippedSetScore,
HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b,
HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b)
Expand Down

0 comments on commit db92f9f

Please sign in to comment.