From 90cc343560f40da049116b7c51b4f21186348cab Mon Sep 17 00:00:00 2001 From: gamer147 Date: Sat, 5 Aug 2023 22:08:57 -0400 Subject: [PATCH] Fixes convar --- code/Entities/RoundManager.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/code/Entities/RoundManager.cs b/code/Entities/RoundManager.cs index a6e5357..00ba688 100644 --- a/code/Entities/RoundManager.cs +++ b/code/Entities/RoundManager.cs @@ -47,11 +47,20 @@ public partial class RoundManager : Entity #region In Progress State - private const int MinigamesPerRound = 1; - + /// + /// The number of minigames that should be played per round, settable via a convar + /// [ConVar.Replicated("lucker_minigames_per_round")] - public static int MinigamesLeftInRound { get; set; } + private static int MinigamesPerRound { get; set; } + /// + /// The number of minigames left in the current round + /// + public int MinigamesLeftInRound { get; set; } + + /// + /// The luckers playing in the current round + /// private List Luckers { get; set; } #endregion