From 0829d4c70002332adbd67b945507a7cba5dffd0b Mon Sep 17 00:00:00 2001 From: MinetestSam <42088654+MinetestSam@users.noreply.github.com> Date: Sat, 13 Jul 2019 06:48:48 +0530 Subject: [PATCH] ctf_bandages: Show coloured alert to target when being healed (#436) Also increase the spawn rate of bandages. Co-Authored-By: ANAND --- mods/ctf/ctf_bandages/init.lua | 1 + mods/ctf/ctf_treasure/init.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/ctf/ctf_bandages/init.lua b/mods/ctf/ctf_bandages/init.lua index 0240051..2a95754 100644 --- a/mods/ctf/ctf_bandages/init.lua +++ b/mods/ctf/ctf_bandages/init.lua @@ -24,6 +24,7 @@ minetest.register_craftitem("ctf_bandages:bandage", { end object:set_hp(hp) itemstack:take_item() + minetest.chat_send_player(pname, minetest.colorize("#C1FF44", name .. " has healed you!")) return itemstack else minetest.chat_send_player(name, pname .. " has " .. hp .. " HP. You can't heal them.") diff --git a/mods/ctf/ctf_treasure/init.lua b/mods/ctf/ctf_treasure/init.lua index 88e7e53..7c8e9cd 100644 --- a/mods/ctf/ctf_treasure/init.lua +++ b/mods/ctf/ctf_treasure/init.lua @@ -23,7 +23,7 @@ function ctf_treasure.get_default_treasures() {"shooter:ammo",0.3,2,{1,10}}, {"shooter:arrow_white",0.5,2,{2,18}}, - {"ctf_bandages:bandage",0.3,5,{1,6}}, + {"ctf_bandages:bandage",0.8,2,{2,4}}, {"medkits:medkit",0.8,5,2} } end