Add bounty kills to stats

This commit is contained in:
rubenwardy 2018-04-18 23:00:15 +01:00
parent cf81d194f9
commit 12d7228ff0
No known key found for this signature in database
GPG key ID: A1E29D52FF81513C
3 changed files with 10 additions and 2 deletions

View file

@ -88,6 +88,10 @@ ctf.register_on_killedplayer(function(victim, killer)
local msg = killer .. " has killed " .. victim .. " and received the prize!"
minetest.chat_send_all(msg)
local pstats, mstats = ctf_stats.player(killer)
pstats.bounty_kills = pstats.bounty_kills + 1
mstats.bounty_kills = mstats.bounty_kills + 1
end
end)