Compare commits

...

4 commits

Author SHA1 Message Date
philipmi
9de5000fb8 Merge branch 'master' of https://github.com/MT-CTF/capturetheflag
 Conflicts:
	mods/ctf/ctf_map/ctf_map_core/chest.lua
	mods/ctf/ctf_stats/init.lua
2021-02-25 17:34:31 +01:00
LoneWolfHT
9e20609ed6
Fix /makepro not handling captures 2021-02-25 06:42:13 -08:00
Toby1710
0282bce349
Change grapple hook warning message (#808)
Co-authored-by: Toby1710 <69259430+Toby1710@users.noreply.github.com>
2021-02-25 06:27:49 -08:00
MinetestSam
e9487c6bde
Consider captures as a requirement for pro players (#541)
Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>
2021-02-24 08:53:07 -08:00
2 changed files with 6 additions and 1 deletions

View file

@ -49,7 +49,7 @@ local function check_grapple(itemname)
on_use = function(itemstack, user, ...)
if not ctf_classes.get(user).properties.allow_grapples then
minetest.chat_send_player(user:get_player_name(),
"Your class can't use that weapon! Change your class at spawn")
"Your class can't use that weapon! Change your class at base")
return itemstack
end

View file

@ -246,6 +246,11 @@ minetest.register_chatcommand("makepro", {
modified = true
end
if stats.captures < 10 then
stats.captures = 10
modified = true
end
if modified then
ctf_stats.request_save()
return true, "Made " .. param .. " a pro!"