This setup is for an odd number of players. The number of mafia will be n/2, rounded down. No power roles. 48h days.
Every day, players may place a number of votes equal to the number of living mafia. At the end of the day, the top 50% (rounded up) players are nominated for elimination. In the event of a tie, the mafia decides who goes into the pool. The mafia may not change their votes after EoD. Instead, if a player has placed fewer than the maximum number of votes, the mafia may assign the remainder after EoD.
If no town were nominated, the town wins.
If no mafia were nominated, the mafia wins.
If a mix of town and mafia were nominated, the mafia must eliminate one of each from the pool of nominees, and the game continues.
The original rule (that mafia could change their votes after EoD) was to avoid an exploit where town could simply all vote for one mafia and win d1. Unfortunately, it meant that the best strategy for town would be to all vote the same way, since they’d lose if they failed to all vote for at least one scum.
The new rule eliminates both the exploit and the lose condition above.