From 40f198d29eb792d97d683484a6e18053bd414553 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 22 Nov 2024 10:55:09 -0600 Subject: [PATCH] Make the threshold be the floor of 3/4 of current players, rather than total - 2 --- server/multiplayer/ServerTossupRoom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/multiplayer/ServerTossupRoom.js b/server/multiplayer/ServerTossupRoom.js index bd1a104b..401a502e 100644 --- a/server/multiplayer/ServerTossupRoom.js +++ b/server/multiplayer/ServerTossupRoom.js @@ -292,7 +292,7 @@ export default class ServerTossupRoom extends TossupRoom { } }); - const threshold = Math.max(activePlayers - 2, 2); + const threshold = Math.max(Math.floor(activePlayers * 3 / 4), 2); const votekick = new Votekick(targetId, threshold, []); votekick.vote(userId); if (votekick.check()) {