Update calls to ctf_colors.get_color (#396)

MT-CTF/ctf_pvp_engine#35. Also update ctf_pvp_engine submodule.
This commit is contained in:
ANAND 2019-04-09 14:01:18 +05:30 committed by GitHub
parent fd1103390e
commit 8f78cd7644
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 13 deletions

View file

@ -2,11 +2,10 @@ local bountied_player = nil
local bounty_score = 0
local function announce(name)
local _, tcolor = ctf_colors.get_color(ctf.player(bountied_player))
tcolor = tcolor:gsub("0x", "#")
local tcolor = ctf_colors.get_color(ctf.player(bountied_player))
minetest.chat_send_player(name,
minetest.colorize("#fff326", "The next person to kill ") ..
minetest.colorize(tcolor, bountied_player) ..
minetest.colorize(tcolor.css, bountied_player) ..
minetest.colorize("#fff326", " will receive " .. bounty_score .. " points!"))
end