Revert "Display kill score as a HUD element (#182)"

This commit is contained in:
rubenwardy 2018-11-12 22:34:41 +00:00
parent 190d7b7e55
commit b28f5b94bb
2 changed files with 1 additions and 82 deletions

View file

@ -44,9 +44,6 @@ local function bounty_player(target)
end
bounty_score = math.floor(bounty_score)
ctf_stats.current_bounty["name"] = bountied_player
ctf_stats.current_bounty["score"] = bounty_score
minetest.after(0.1, announce_all)
end
@ -73,7 +70,6 @@ minetest.after(math.random(500, 1000), bounty_find_new_target)
minetest.register_on_leaveplayer(function(player)
if bountied_player == player:get_player_name() then
bountied_player = nil
ctf_stats.current_bounty = {}
end
end)
@ -96,7 +92,6 @@ ctf.register_on_killedplayer(function(victim, killer)
ctf.needs_save = true
end
bountied_player = nil
ctf_stats.current_bounty = {}
local msg = killer .. " has killed " .. victim .. " and received the prize!"
minetest.chat_send_all(msg)