Compare commits

...

4 commits

Author SHA1 Message Date
philipmi
b76b3cdf65 Merge branch 'master' of https://github.com/MT-CTF/capturetheflag 2021-07-14 22:20:07 +02:00
ksandr
24c267c3b8
Colorize leave messages (#909)
* add leave message

* Update mods/ctf/ctf_leave_message/init.lua

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update mods/ctf/ctf_leave_message/init.lua

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update mods/ctf/ctf_leave_message/mod.conf

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update mods/ctf/ctf_leave_message/init.lua

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update mods/ctf/ctf_leave_message/init.lua

okay.

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update mods/ctf/ctf_leave_message/init.lua

Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>
2021-07-05 13:54:47 -07:00
_Lucy
3736223110
Make stairs diggable with paxel (#905)
* Making stairs diggable with the paxel

Adds cobble stairs and desert cobble stairs to local function "isdiggable" and "remove_pillar"

* Update mods/ctf/ctf_classes/medic.lua

Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>
2021-06-24 13:49:14 -07:00
dependabot[bot]
0e3a5413ce
Update Map Submodule (#904)
Bumps [mods/ctf/ctf_map/ctf_map_core/maps](https://github.com/MT-CTF/maps) from `fa7fa3e` to `6afcf12`.
- [Release notes](https://github.com/MT-CTF/maps/releases)
- [Commits](fa7fa3e8f8...6afcf12e1c)

---
updated-dependencies:
- dependency-name: mods/ctf/ctf_map/ctf_map_core/maps
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-23 21:03:26 -07:00
4 changed files with 16 additions and 2 deletions

View file

@ -150,6 +150,7 @@ local function isdiggable(name)
name:find("glass" ) or name:find("ice" ) or name:find("glass" ) or name:find("ice" ) or
name:find("snow" ) name:find("snow" )
) )
or name:find("stairs:")
end end
local function paxel_stop(pname, reason) local function paxel_stop(pname, reason)
@ -165,7 +166,7 @@ end
local function remove_pillar(pos, pname) local function remove_pillar(pos, pname)
local name = minetest.get_node(pos).name local name = minetest.get_node(pos).name
if name:find("default") and isdiggable(name) then if name:find("default") or name:find("stairs") and isdiggable(name) then
local player = minetest.get_player_by_name(pname) local player = minetest.get_player_by_name(pname)
minetest.dig_node(pos) minetest.dig_node(pos)

View file

@ -0,0 +1,10 @@
function minetest.send_leave_message(player_name, timed_out)
local player = ctf.player(player_name)
local tcolor = ctf_colors.get_color(player).css
local announcement = "*** " .. minetest.colorize(tcolor, player_name) .. " left the game."
if timed_out then
announcement = announcement .. " (timed out)"
end
minetest.chat_send_all(announcement)
end

View file

@ -0,0 +1,3 @@
name = ctf_leave_message
depends = ctf, ctf_colors
description = Colorizes leaving messages

@ -1 +1 @@
Subproject commit fa7fa3e8f80dd82d6e98766581269817325e546b Subproject commit 6afcf12e1ca22873fc4066b242f57b8398131745