From 6465658b99e488a554a74bc08a21aedb54c4eec6 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Tue, 10 Feb 2026 19:20:17 -0700 Subject: [PATCH] Fix level being 0 if no stats --- Assets/Scripts/Tools.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Tools.cs b/Assets/Scripts/Tools.cs index 9561038..17032ef 100644 --- a/Assets/Scripts/Tools.cs +++ b/Assets/Scripts/Tools.cs @@ -105,7 +105,7 @@ public static class Tools double percentDone = totalXpForLevel == 0 ? 0.0 : (double)currentXpInLevel / (double)totalXpForLevel * 100.0; - return (totalXp, flooredLevel, currentXpInLevel, totalXpForLevel, percentDone); + return (totalXp, flooredLevel + 1, currentXpInLevel, totalXpForLevel, percentDone); } public static string FormatHumanTime(long unixTimestamp)