]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Lower in-round votekick requirements (#32953)
authorSlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com>
Fri, 1 Nov 2024 01:47:59 +0000 (02:47 +0100)
committerGitHub <noreply@github.com>
Fri, 1 Nov 2024 01:47:59 +0000 (21:47 -0400)
Initial commit

Content.Client/Voting/UI/VoteCallMenu.xaml.cs
Content.Shared/CCVar/CCVars.cs
Resources/Locale/en-US/voting/ui/vote-call-menu.ftl

index c5746c24d791e4e05b802a908a5c139bb1a5ee00..c682a937120dc712b5ecbdf1b90188d13ab49e34 100644 (file)
@@ -62,7 +62,7 @@ namespace Content.Client.Voting.UI
 
             Stylesheet = IoCManager.Resolve<IStylesheetManager>().SheetSpace;
             CloseButton.OnPressed += _ => Close();
-            VoteNotTrustedLabel.Text = Loc.GetString("ui-vote-trusted-users-notice", ("timeReq", _cfg.GetCVar(CCVars.VotekickEligibleVoterDeathtime) / 60));
+            VoteNotTrustedLabel.Text = Loc.GetString("ui-vote-trusted-users-notice", ("timeReq", _cfg.GetCVar(CCVars.VotekickEligibleVoterDeathtime)));
 
             foreach (StandardVoteType voteType in Enum.GetValues<StandardVoteType>())
             {
index 339c0f895fc8d103a4b27bf43af0274546cbc7e8..f333f6536d40a745f9ecdb641c9ab9be5f254859 100644 (file)
@@ -1469,7 +1469,7 @@ namespace Content.Shared.CCVar
         ///     Config for when the votekick should be allowed to be called based on number of eligible voters.
         /// </summary>
         public static readonly CVarDef<int> VotekickEligibleNumberRequirement =
-            CVarDef.Create("votekick.eligible_number", 10, CVar.SERVERONLY);
+            CVarDef.Create("votekick.eligible_number", 5, CVar.SERVERONLY);
 
         /// <summary>
         ///     Whether a votekick initiator must be a ghost or not.
@@ -1493,7 +1493,7 @@ namespace Content.Shared.CCVar
         ///     Config for how many seconds a player must have been dead to initiate a votekick / be able to vote on a votekick.
         /// </summary>
         public static readonly CVarDef<int> VotekickEligibleVoterDeathtime =
-            CVarDef.Create("votekick.voter_deathtime", 180, CVar.REPLICATED | CVar.SERVER);
+            CVarDef.Create("votekick.voter_deathtime", 30, CVar.REPLICATED | CVar.SERVER);
 
         /// <summary>
         ///     The required ratio of eligible voters that must agree for a votekick to go through.
index 7ac9c344fde21f350d98f0db924d912d8fc9f596..fbae3598ed619adfdaae0bd74673bf85559697cb 100644 (file)
@@ -26,7 +26,7 @@ ui-vote-type-not-available = This vote type has been disabled
 # Vote option only available for specific users.
 ui-vote-trusted-users-notice =
   This vote option is only available to whitelisted players.
-  In addition, you must have been a ghost for { $timeReq } minutes.
+  In addition, you must have been a ghost for { $timeReq } seconds.
 
 # Warning to not abuse a specific vote option.
 ui-vote-abuse-warning =