Gamerules are special options that can be modified in customs and are changed in certain gamemodes.
Some ideas for gamerules so far:
Anonymous Voting (Checkbox) (false by default)
If checked, votes will be anonymous.
Autovests? (Checkbox) (true by default, false in Vigilantics)
If unchecked, Witch and other roles that have such a defense will lose it at the start of the game.
Traitor? (Checkbox) (false by default, true in Coven
Town Traitor/Town Traitor)
If checked, a random Townie will join a random evil faction. This can bypass the faction limit.
Lovers? (Checkbox) (false by default, true in Lovers)
If checked, 8 players who do not have a Suicidal role will be part of a lover pair.
Town VIP (Town Roleslot) (None by default, Random Town in VIP Mode)
If the chosen role spawns, one of the players with this role will be chosen as the Town's VIP. The VIP cannot be a Suicidal role.
Banned Roles (List of Roles) (none by default)
None of the roles in this list will be allowed to spawn.
If we're going for maximum freedom, these options could also be added:
Mafia VIP (Mafia Roleslot) (None by default)
If the chosen role spawns, one of the players with this role will be chosen as the Mafia's VIP.
Coven VIP (Coven Roleslot) (None by default)
If the chosen role spawns, one of the players with this role will be chosen as the Coven's VIP.
Rivals? (Checkbox) (false by default, true in Rivals)
If checked, 8 players will be part of a rival pair.
Faction Limit (Number) (4 by default)
Sets the maximum amount of members an evil faction can spawn with.
Default Role Limit (Number) (6 by default)
Sets the default maximum amount of the same non-unique role that can spawn in a game.
Case-by-case Role Limit (Dropdown - once dropped down, a list of every Role in the game alongside a Number) (Default Role Limit by default for non-Unique roles)
Sets the maximum amount of this role that can spawn in a game. Some roles' limits may not be changed to stop game-breaking issues.
Roles Hidden? (Checkbox - false by default)
If checked, all roles in the graveyard will appear as (Hidden). Retributionists, Forgers, Janitors and Amnesiacs may not roll.
We could also replace Rapid Mode with a checkbox in the gamerules if needed.
(Vigilante, Executioner, Jester and Bodyguard are considered to be Suicidal roles.)