Skip to content

Commit

Permalink
Update bounty_algo.lua: new bounty calculation algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
farooqkz authored Apr 2, 2024
1 parent 17003f6 commit bbd0482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/ctf/ctf_modebase/bounty_algo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ function ctf_modebase.bounty_algo.kd.bounty_reward_func(pname)
local recent = ctf_modebase:get_current_mode().recent_rankings.players()[pname] or {}
local kd = (recent.kills or 1) / (recent.deaths or 1)

return {bounty_kills = 1, score = math.max(5, math.min(120, math.ceil(kd * 7)))}
return {bounty_kills = 1, score = math.pow(kd * 1.5, 2.3)}
end

0 comments on commit bbd0482

Please sign in to comment.