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:
RyanZem 2021-01-25 20:49:13 +02:00 committed by GitHub
parent b49909fc50
commit 5e955ad4a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)