disable kickvote

master
MisterE 2022-06-28 18:57:02 -04:00
parent 54112a540b
commit b7a0546ad0
3 changed files with 26 additions and 15 deletions

View File

@ -1,7 +1,14 @@
sounds CC0, various authors 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 textures are or are released to the public domain
lua_csv is MIT, see its license lua_csv is MIT, see its license
GNU GENERAL PUBLIC LICENSE GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007 Version 3, 29 June 2007

View File

@ -60,19 +60,19 @@ end)
arena_lib.on_time_tick('quikbild', function(arena) arena_lib.on_time_tick('quikbild', function(arena)
-- kick players who have been voted out -- kick players who have been voted out
if arena.state ~= "game_over" and arena.in_celebration == false then -- if arena.state ~= "game_over" and arena.in_celebration == false then
local num_players = 0 -- local num_players = 0
for pl_name,stats in pairs(arena.players) do -- for pl_name,stats in pairs(arena.players) do
num_players = num_players + 1 -- num_players = num_players + 1
end -- end
for pl_name,stats in pairs(arena.players) do -- for pl_name,stats in pairs(arena.players) do
if stats.kickvotes > num_players/3 and num_players > 4 then -- if stats.kickvotes > num_players/3 and num_players > 4 then
arena_lib.remove_player_from_arena(pl_name, 2) -- 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.") -- 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)) -- minetest.chat_send_player(pl_name,minetest.colorize("#7D7071",">> "..msg))
end -- end
end -- end
end -- end
if arena.state == 'choose_artist' then 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 -- give everyone except the artist helpful tools
local l_player = minetest.get_player_by_name(pl_name) 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) local item = ItemStack(itemname)
l_player:get_inventory():set_stack("main", idx, item) l_player:get_inventory():set_stack("main", idx, item)
end end

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 B