Add pro-only area in chest

This commit is contained in:
rubenwardy 2017-10-12 01:19:23 +01:00
parent 4514afdfe4
commit 82529b56e3
5 changed files with 70 additions and 20 deletions

View file

@ -41,6 +41,7 @@ local function calc_scores(players)
return one.score > two.score
end)
end
ctf_stats.calc_scores = calc_scores
function ctf_stats.get_formspec(title, players)
calc_scores(players)

View file

@ -53,7 +53,8 @@ function ctf_stats.player(name)
kills = 0,
deaths = 0,
captures = 0,
attempts = 0
attempts = 0,
score = -1,
}
ctf_stats.players[name] = player
end