Restart vote improvements, voting localization.

Restart votes now need 80% majority to succeed.
Restart votes now have a 3 minute cooldown on the caller.
Voting stuff has been localized.
This commit is contained in:
Pieter-Jan Briers
2021-02-28 22:11:45 +01:00
parent 0c059fc699
commit 245f276f35
11 changed files with 145 additions and 31 deletions

View File

@@ -1,4 +1,5 @@
using Robust.Server.Player;
using System.Collections.Generic;
using Robust.Server.Player;
namespace Content.Server.Voting
{
@@ -10,6 +11,8 @@ namespace Content.Server.Voting
bool Finished { get; }
bool Cancelled { get; }
IReadOnlyDictionary<object, int> VotesPerOption { get; }
event VoteFinishedEventHandler OnFinished;
bool IsValidOption(int optionId);
void CastVote(IPlayerSession session, int? optionId);