Adjust scoring algorithm

This commit is contained in:
rubenwardy 2015-12-30 13:05:15 +00:00
parent e7947b64d9
commit 076fe976ce

View file

@ -28,18 +28,15 @@ local function calc_scores(players)
elseif kd > 30 then elseif kd > 30 then
kd = 30 kd = 30
end end
local ca = 0 --[[local killbonus = 0
if pstat.attempts > 0 then
ca = pstat.captures / pstat.attempts
end
local killbonus = 0
if pstat.kills > 50 and pstat.kills < 200 then if pstat.kills > 50 and pstat.kills < 200 then
killbonus = pstat.kills - 50 killbonus = pstat.kills - 50
elseif pstat.kills >= 200 then elseif pstat.kills >= 200 then
killbonus = 150 killbonus = 150
end end]]--
pstat.score = killbonus + pstat.score = --killbonus +
10 * pstat.captures * ca + 50 * pstat.captures +
10 * pstat.attempts +
5 * kd 5 * kd
end end
table.sort(players, function(one, two) table.sort(players, function(one, two)