Color score green in bounty messages (#745)
* Delete init.lua * Make bounty color green "bounty_score points!" * Delete init.lua * Make in bounty green color (bounty_score points!) * Update init.lua * Update init.lua * Update init.lua * Update init.lua * Update init.lua * Update init.lua * Update init.lua * Update mods/ctf/ctf_bounties/init.lua Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com> Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>
This commit is contained in:
parent
b49909fc50
commit
5e955ad4a4
1 changed files with 6 additions and 2 deletions
|
@ -6,7 +6,9 @@ local function announce(name)
|
||||||
minetest.chat_send_player(name,
|
minetest.chat_send_player(name,
|
||||||
minetest.colorize("#fff326", "The next person to kill ") ..
|
minetest.colorize("#fff326", "The next person to kill ") ..
|
||||||
minetest.colorize(tcolor.css, bountied_player) ..
|
minetest.colorize(tcolor.css, bountied_player) ..
|
||||||
minetest.colorize("#fff326", " will receive " .. bounty_score .. " points!"))
|
minetest.colorize("#fff326", " will receive ") ..
|
||||||
|
minetest.colorize("#7efc00", bounty_score) ..
|
||||||
|
minetest.colorize("#fff326", " points!"))
|
||||||
end
|
end
|
||||||
|
|
||||||
local function announce_all()
|
local function announce_all()
|
||||||
|
@ -129,7 +131,9 @@ ctf.register_on_killedplayer(function(victim, killer)
|
||||||
local msg = minetest.colorize(killer_color, killer) ..
|
local msg = minetest.colorize(killer_color, killer) ..
|
||||||
minetest.colorize("#fff326", " has killed ") ..
|
minetest.colorize("#fff326", " has killed ") ..
|
||||||
minetest.colorize(victim_color, victim) ..
|
minetest.colorize(victim_color, victim) ..
|
||||||
minetest.colorize("#fff326", " and received " .. bounty_score .. " points!")
|
minetest.colorize("#fff326", " and received " ) ..
|
||||||
|
minetest.colorize("#7efc00", bounty_score) ..
|
||||||
|
minetest.colorize("#fff326", " points!")
|
||||||
minetest.log("action", minetest.strip_colors(msg))
|
minetest.log("action", minetest.strip_colors(msg))
|
||||||
minetest.chat_send_all(msg)
|
minetest.chat_send_all(msg)
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in a new issue