Improve bounty target kill message (#547)
This commit is contained in:
parent
19d9b3efb8
commit
50599e3009
1 changed files with 7 additions and 2 deletions
|
@ -94,8 +94,13 @@ ctf.register_on_killedplayer(function(victim, killer)
|
|||
end
|
||||
bountied_player = nil
|
||||
|
||||
local msg = killer .. " has killed " .. victim .. " and received the prize!"
|
||||
minetest.log("action", msg)
|
||||
local killer_color = ctf_colors.get_color(ctf.player(killer)).css
|
||||
local victim_color = ctf_colors.get_color(ctf.player(victim)).css
|
||||
local msg = minetest.colorize(killer_color, killer) ..
|
||||
minetest.colorize("#fff326", " has killed ") ..
|
||||
minetest.colorize(victim_color, victim) ..
|
||||
minetest.colorize("#fff326", " and received " .. bounty_score .. " points!")
|
||||
minetest.log("action", minetest.strip_colors(msg))
|
||||
minetest.chat_send_all(msg)
|
||||
hud_score.new(killer, {
|
||||
name = "ctf_bounty:prize",
|
||||
|
|
Loading…
Reference in a new issue