fix(core): Fixes displaying some doubles (#585)

This commit is contained in:
Kamron Batman 2021-04-25 14:04:44 -07:00 • committed by GitHub
parent a0893b68c0
commit 13717ab2d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 13 additions and 25 deletions

View file

@ -886,7 +886,7 @@ namespace Server.Engines.CannedEvil
list.Add(
1060660, // ~1_val~: ~2_val~
"Kills\t{0} of {1} ({2:F1}%)",
"Kills\t{0} of {1} ({2:0.#}%)",
m_Kills,
MaxKills,
100.0 * ((double)m_Kills / MaxKills)