Skip to content

Commit

Permalink
Merge pull request #329 from 1337isnot1337/main
Browse files Browse the repository at this point in the history
Make the threshold be the floor of 3/4 of current players
  • Loading branch information
geoffrey-wu authored Nov 25, 2024
2 parents 2f9786d + 40f198d commit 621c66f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/multiplayer/ServerTossupRoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 621c66f

Please sign in to comment.