Use commas for level/xp info

This commit is contained in:
2026-02-08 02:29:49 -07:00
parent 57222712b6
commit 6f56175104
2 changed files with 3 additions and 3 deletions

View File

@@ -677,7 +677,7 @@ public class GamePlayer : MonoBehaviour
if (DiscordRPCHandler.Instance != null)
DiscordRPCHandler.Instance.UpdateRPC("Playing in normal mode", $"Score: {Tools.FormatWithCommas(score)} | High Score: {Tools.FormatWithCommas(highscore)}");
var (_, level, currentXpInLevel, totalXpForLevel, percentDone) = Tools.GetLevelInfo();
levelText.text = $"Level: {level}" + (Application.isMobilePlatform ? " \\u2022 " : "\n") + $"XP: {currentXpInLevel}/{totalXpForLevel} ({Math.Floor(percentDone)}%)";
levelText.text = $"Level: {Tools.FormatWithCommas(level.ToString())}" + (Application.isMobilePlatform ? " \\u2022 " : "\n") + $"XP: {Tools.FormatWithCommas(currentXpInLevel.ToString())}/{Tools.FormatWithCommas(totalXpForLevel.ToString())} ({Math.Floor(percentDone)}%)";
}
void CheckIfGrounded()