Lower in-round votekick requirements (#32953)

Initial commit
This commit is contained in:
SlamBamActionman
2024-11-01 02:47:59 +01:00
committed by GitHub
parent 59f1287aa3
commit b3190b8935
3 changed files with 4 additions and 4 deletions

View File

@@ -62,7 +62,7 @@ namespace Content.Client.Voting.UI
Stylesheet = IoCManager.Resolve<IStylesheetManager>().SheetSpace; Stylesheet = IoCManager.Resolve<IStylesheetManager>().SheetSpace;
CloseButton.OnPressed += _ => Close(); 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>()) foreach (StandardVoteType voteType in Enum.GetValues<StandardVoteType>())
{ {

View 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. /// Config for when the votekick should be allowed to be called based on number of eligible voters.
/// </summary> /// </summary>
public static readonly CVarDef<int> VotekickEligibleNumberRequirement = public static readonly CVarDef<int> VotekickEligibleNumberRequirement =
CVarDef.Create("votekick.eligible_number", 10, CVar.SERVERONLY); CVarDef.Create("votekick.eligible_number", 5, CVar.SERVERONLY);
/// <summary> /// <summary>
/// Whether a votekick initiator must be a ghost or not. /// 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. /// Config for how many seconds a player must have been dead to initiate a votekick / be able to vote on a votekick.
/// </summary> /// </summary>
public static readonly CVarDef<int> VotekickEligibleVoterDeathtime = 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> /// <summary>
/// The required ratio of eligible voters that must agree for a votekick to go through. /// The required ratio of eligible voters that must agree for a votekick to go through.

View File

@@ -26,7 +26,7 @@ ui-vote-type-not-available = This vote type has been disabled
# Vote option only available for specific users. # Vote option only available for specific users.
ui-vote-trusted-users-notice = ui-vote-trusted-users-notice =
This vote option is only available to whitelisted players. 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. # Warning to not abuse a specific vote option.
ui-vote-abuse-warning = ui-vote-abuse-warning =