ctf_bandages: Show coloured alert to target when being healed (#436)

Also increase the spawn rate of bandages.

Co-Authored-By: ANAND <ClobberXD@gmail.com>
This commit is contained in:
MinetestSam 2019-07-13 06:48:48 +05:30 committed by ANAND
parent da8a166902
commit 0829d4c700
2 changed files with 2 additions and 1 deletions

View file

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

View file

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