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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user