Skip to content

Commit

Permalink
Fix rounding of score in pro chest message
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Dec 11, 2023
1 parent 955bb28 commit bd5c921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/ctf/ctf_modebase/features.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd5c921

Please sign in to comment.