From 5e955ad4a49c6854c6409ad9eeee455aff75f026 Mon Sep 17 00:00:00 2001 From: RyanZem <72454408+RyanZem@users.noreply.github.com> Date: Mon, 25 Jan 2021 20:49:13 +0200 Subject: [PATCH] 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 Co-authored-by: LoneWolfHT --- mods/ctf/ctf_bounties/init.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mods/ctf/ctf_bounties/init.lua b/mods/ctf/ctf_bounties/init.lua index ae4871f..f978c1f 100644 --- a/mods/ctf/ctf_bounties/init.lua +++ b/mods/ctf/ctf_bounties/init.lua @@ -6,7 +6,9 @@ local function announce(name) minetest.chat_send_player(name, minetest.colorize("#fff326", "The next person to kill ") .. 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 local function announce_all() @@ -129,7 +131,9 @@ ctf.register_on_killedplayer(function(victim, killer) 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.colorize("#fff326", " and received " ) .. + minetest.colorize("#7efc00", bounty_score) .. + minetest.colorize("#fff326", " points!") minetest.log("action", minetest.strip_colors(msg)) minetest.chat_send_all(msg) end)