From b7a0546ad06065a80f01551d84d0a3e2d3ad3f65 Mon Sep 17 00:00:00 2001 From: MisterE Date: Tue, 28 Jun 2022 18:57:02 -0400 Subject: [PATCH] disable kickvote --- license.txt | 7 ++++++ minigame_manager.lua | 34 ++++++++++++++++------------- textures/magiccompass_quikbild.png | Bin 0 -> 194 bytes 3 files changed, 26 insertions(+), 15 deletions(-) create mode 100644 textures/magiccompass_quikbild.png diff --git a/license.txt b/license.txt index 2188d8d..b8a68b3 100644 --- a/license.txt +++ b/license.txt @@ -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 diff --git a/minigame_manager.lua b/minigame_manager.lua index c14704f..42bd016 100644 --- a/minigame_manager.lua +++ b/minigame_manager.lua @@ -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 diff --git a/textures/magiccompass_quikbild.png b/textures/magiccompass_quikbild.png new file mode 100644 index 0000000000000000000000000000000000000000..ebbecc11d5f7555b6dced8ff7ca456300707a311 GIT binary patch literal 194 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`ot`d^Ar-fh6BdXWT)6m~|L~C& zhXwZhf2%F?*oZ~tU;SM(gSOR;nQmo_X3i6I4`y*}V#=AdKWE~<_~-zRY4-Iw$Nz8U zoV>A`b$Xfvn