Restart votes now default to no.

This commit is contained in:
Pieter-Jan Briers
2021-07-21 15:24:43 +02:00
parent 4259bc6806
commit 3a6ad88b39
2 changed files with 13 additions and 0 deletions

View File

@@ -61,6 +61,15 @@ namespace Content.Server.Voting.Managers
// Cast yes vote if created the vote yourself. // Cast yes vote if created the vote yourself.
vote.CastVote(initiator, 0); vote.CastVote(initiator, 0);
} }
foreach (var player in _playerManager.GetAllPlayers())
{
if (player != initiator)
{
// Everybody else defaults to a no vote.
vote.CastVote(player, 1);
}
}
} }
public void CreatePresetVote(IPlayerSession? initiator) public void CreatePresetVote(IPlayerSession? initiator)

View File

@@ -0,0 +1,4 @@
author: PJB
changes:
- type: Tweak
message: Restart round votes now start with everybody selecting "no", effectively requiring 80% of the whole server to agree.