From bd5c921b8b8aba11487f1b01a0a91b37b9702897 Mon Sep 17 00:00:00 2001 From: LoneWolfHT Date: Mon, 11 Dec 2023 09:08:05 -0800 Subject: [PATCH] Fix rounding of score in pro chest message --- mods/ctf/ctf_modebase/features.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ctf/ctf_modebase/features.lua b/mods/ctf/ctf_modebase/features.lua index 36b3cd4115..1ccf6f9e5d 100644 --- a/mods/ctf/ctf_modebase/features.lua +++ b/mods/ctf/ctf_modebase/features.lua @@ -699,7 +699,7 @@ return { "5 captures, and at least 8,000 score to access the pro section." if rank then local captures_needed = math.max(0, 5 - (rank.flag_captures or 0)) - local score_needed = math.max(math.max(0, 8000 - (rank.score or 0))) + local score_needed = math.floor(math.max(0, 8000 - (rank.score or 0))) local current_kd = math.floor((rank.kills or 0) / (rank.deaths or 1) * 10) current_kd = current_kd / 10 deny_pro = deny_pro .. " You still need " .. captures_needed