mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-29 02:51:41 +00:00
* Mafia games can now be voted on to start early, forced to start early by admins (#74256) ## About The Pull Request **DISCLAIMER:** Mafia, being a 12-player game, is very very difficult to debug. I've tested everything here to the extent that I can as one person, but this might need some really careful inspection. This PR adds a new option to the mafia minigame menu, which lets signed-up players vote to start the game early. If there are more than three players signed up, and at least half of them are voting to start, the round will start. Admins also have the option to force a mafia round to start in the admin options panel. When a round is forcibly started, a random non-standard role setup is created. Unlike the normal setup parameters, which assume you have twelve players and attempts to fill out certain role types as a result, this one uses pools based on role alignment. If you start with eight players, you just might end up with four wardens, two thoughtfeeders, and double clowns. Every 3rd player is chosen as a random mafia member. The 5th and 6th roles are neutral disruptive and a random neutral role respectively. Everyone else is a random townie. I believe this formula is sufficient to create a playable experience with 5+ players. It can't start at any less than three, as the game would auto-resolve instantly. The setup won't be pretty, but it's better than no mafia game at all. ## Why It's Good For The Game Now you can play mafia without the strict 12-player requirement! Gives some opportunity for players to get acquainted with roles, the gameplay, and the mafia panel in a lower-seriousness environment than a standard 12-man game. If the ratio of early start voters required to start needs adjusting, that can be done. ## Changelog 🆑 Rhials add: You can now vote to start a Mafia game early. If over half of the current signups vote (And you have three or more players) you will immediately start a game with a slightly adjusted set of roles. admin: You can now force a mafia game to start in the admin options panel. /🆑 * Mafia games can now be voted on to start early, forced to start early by admins --------- Co-authored-by: Rhials <Datguy33456@gmail.com>