disable kickvote
parent
54112a540b
commit
b7a0546ad0
|
@ -1,7 +1,14 @@
|
|||
sounds CC0, various authors
|
||||
|
||||
magiccompass_quikbild.png - CC BY SA Zughy https://creativecommons.org/licenses/by-sa/4.0/
|
||||
|
||||
|
||||
otherwise,
|
||||
textures are or are released to the public domain
|
||||
|
||||
lua_csv is MIT, see its license
|
||||
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
|
|
|
@ -60,19 +60,19 @@ end)
|
|||
arena_lib.on_time_tick('quikbild', function(arena)
|
||||
|
||||
-- kick players who have been voted out
|
||||
if arena.state ~= "game_over" and arena.in_celebration == false then
|
||||
local num_players = 0
|
||||
for pl_name,stats in pairs(arena.players) do
|
||||
num_players = num_players + 1
|
||||
end
|
||||
for pl_name,stats in pairs(arena.players) do
|
||||
if stats.kickvotes > num_players/3 and num_players > 4 then
|
||||
arena_lib.remove_player_from_arena(pl_name, 2)
|
||||
local msg = S("You were kicked by vote. Feel free to play again, but try not to be AFK during your turn, build letters, or tell players what your word is when you are the builder.")
|
||||
minetest.chat_send_player(pl_name,minetest.colorize("#7D7071",">> "..msg))
|
||||
end
|
||||
end
|
||||
end
|
||||
-- if arena.state ~= "game_over" and arena.in_celebration == false then
|
||||
-- local num_players = 0
|
||||
-- for pl_name,stats in pairs(arena.players) do
|
||||
-- num_players = num_players + 1
|
||||
-- end
|
||||
-- for pl_name,stats in pairs(arena.players) do
|
||||
-- if stats.kickvotes > num_players/3 and num_players > 4 then
|
||||
-- arena_lib.remove_player_from_arena(pl_name, 2)
|
||||
-- local msg = S("You were kicked by vote. Feel free to play again, but try not to be AFK during your turn, build letters, or tell players what your word is when you are the builder.")
|
||||
-- minetest.chat_send_player(pl_name,minetest.colorize("#7D7071",">> "..msg))
|
||||
-- end
|
||||
-- end
|
||||
-- end
|
||||
|
||||
|
||||
if arena.state == 'choose_artist' then
|
||||
|
@ -140,9 +140,13 @@ arena_lib.on_time_tick('quikbild', function(arena)
|
|||
|
||||
-- give everyone except the artist helpful tools
|
||||
local l_player = minetest.get_player_by_name(pl_name)
|
||||
l_player:hud_set_hotbar_itemcount(3)
|
||||
l_player:hud_set_hotbar_itemcount(2)
|
||||
|
||||
for idx ,itemname in pairs({"quikbild:lang","quikbild:help","quikbild:kick"}) do
|
||||
for idx ,itemname in pairs({
|
||||
"quikbild:lang",
|
||||
"quikbild:help",
|
||||
--"quikbild:kick"
|
||||
}) do
|
||||
local item = ItemStack(itemname)
|
||||
l_player:get_inventory():set_stack("main", idx, item)
|
||||
end
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 194 B |
Loading…
Reference in New Issue