Tips system (#13509)

* dataset

* cvar

* tips system

* oops

* even higher

* peptide

* dataset cvar
This commit is contained in:
Kara
2023-01-16 10:52:52 -06:00
committed by GitHub
parent b6841911ef
commit 52e50bd34f
4 changed files with 170 additions and 0 deletions

View File

@@ -385,6 +385,35 @@ namespace Content.Shared.CCVar
public static readonly CVarDef<int> PiratesPlayersPerOp =
CVarDef.Create("pirates.players_per_pirate", 5);
/*
* Tips
*/
/// <summary>
/// Whether tips being shown is enabled at all.
/// </summary>
public static readonly CVarDef<bool> TipsEnabled =
CVarDef.Create("tips.enabled", true);
/// <summary>
/// The dataset prototype to use when selecting a random tip.
/// </summary>
public static readonly CVarDef<string> TipsDataset =
CVarDef.Create("tips.dataset", "Tips");
/// <summary>
/// The number of seconds between each tip being displayed when the round is not actively going
/// (i.e. postround or lobby)
/// </summary>
public static readonly CVarDef<float> TipFrequencyOutOfRound =
CVarDef.Create("tips.out_of_game_frequency", 60f * 2);
/// <summary>
/// The number of seconds between each tip being displayed when the round is actively going
/// </summary>
public static readonly CVarDef<float> TipFrequencyInRound =
CVarDef.Create("tips.in_game_frequency", 60f * 30);
/*
* Console
*/