Files
wwdpublic/Content.Shared/CCVar/CCVars.Ghost.cs
VMSolidus 8296f18101 Split All CVars Into Separate Files (#1587)
# Description

This PR splits all the CVars into separate files. Unfortunately I need
to hella clean this up by restoring all the CVars that are different on
EE, because cherrypicking it reset everything to Wizden's Defaults
(Including CVars that no longer exist on EE, and removing CVars from
systems I codeown now, such as Atmos, Guns, and Melee).

# Changelog

No changelog because this isn't player facing. :)

---------

Co-authored-by: Simon <63975668+Simyon264@users.noreply.github.com>

(cherry picked from commit 357f8378c09ccb9f172fc720fd61deb25bc168ea)
2025-01-20 21:08:12 +03:00

25 lines
896 B
C#

using Robust.Shared.Configuration;
namespace Content.Shared.CCVar;
public sealed partial class CCVars
{
/// <summary>
/// The time you must spend reading the rules, before the "Request" button is enabled
/// </summary>
public static readonly CVarDef<float> GhostRoleTime =
CVarDef.Create("ghost.role_time", 8f, CVar.REPLICATED | CVar.SERVER);
/// <summary>
/// If ghost role lotteries should be made near-instanteous.
/// </summary>
public static readonly CVarDef<bool> GhostQuickLottery =
CVarDef.Create("ghost.quick_lottery", false, CVar.SERVERONLY);
/// <summary>
/// Whether or not to kill the player's mob on ghosting, when it is in a critical health state.
/// </summary>
public static readonly CVarDef<bool> GhostKillCrit =
CVarDef.Create("ghost.kill_crit", true, CVar.REPLICATED | CVar.SERVER);
}