bugfix in EP display over 10k

This commit is contained in:
Horyoshi
2025-10-28 21:09:07 +01:00
parent 017998e041
commit e6b9711ec8
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
## X-Website: https://github.com/cinecom/shootyepgp/
## X-Category: Guild
## X-Credits: shooty, Qcat(zhCN)
## Version: 10.12 <ERROR>
## Version: 10.13 <ERROR>
## X-Alpha:
## OptionalDeps: Ace2
## SavedVariables: sepgp_saychannel, sepgp_groupbyclass, sepgp_groupbyarmor, sepgp_groupbyrole, sepgp_raidonly, sepgp_dbver, sepgp_debug, sepgp_fubar, sepgp_sound
+6 -6
View File
@@ -591,18 +591,18 @@ function sepgp_standings:OnTooltipUpdate()
local text = C:Colorize(BC:GetHexColor(class), name) .. " " .. C:Colorize("aaaaaa", "("..rankName..")")
local text2, text4
if sepgp_minep > 0 and ep < sepgp_minep then
text2 = C:Red(string.format("%.4g", ep))
text4 = C:Red(string.format("%.4g", pr))
text2 = C:Red(string.format("%d", ep))
text4 = C:Red(string.format("%.4f", pr))
else
text2 = string.format("%.4g", ep)
text4 = string.format("%.4g", pr)
text2 = string.format("%d", ep)
text4 = string.format("%.4f", pr)
end
local text3 = string.format("%.4g", gp)
local text3 = string.format("%d", gp)
if ((sepgp._playerName) and sepgp._playerName == name) or ((sepgp_main) and sepgp_main == name) then
text = string.format("(*)%s",text)
local pr_decay = sepgp:capcalc(ep,gp)
if pr_decay < 0 then
text4 = string.format("%s(|cffff0000%.4g|r)",text4,pr_decay)
text4 = string.format("%s(|cffff0000%.4f|r)",text4,pr_decay)
end
end
cat:AddLine(