Skip to content

Commit

Permalink
ChaosTargetCounter (#2179)
Browse files Browse the repository at this point in the history
* ChaosTargetCounter

* Network_chaosTargetCount

---------

Co-authored-by: Thunder <[email protected]>
  • Loading branch information
Misfiy and Thundermaker300 authored Oct 28, 2023
1 parent 47eb758 commit a3afed0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Exiled.API/Features/Round.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ public static class Round
/// </summary>
public static bool IsLobby => !(IsEnded || IsStarted);

/// <summary>
/// Gets or sets a value indicating the amount of Chaos Targets remaining.
/// </summary>
public static int ChaosTargetCount
{
get => RoundSummary.singleton.Network_chaosTargetCount;
set => RoundSummary.singleton.Network_chaosTargetCount = value;
}

/// <summary>
/// Gets or sets a value indicating whether the round is locked or not.
/// </summary>
Expand Down Expand Up @@ -240,4 +249,4 @@ public static bool EndRound(bool forceEnd = false)
/// </summary>
public static void Start() => CharacterClassManager.ForceRoundStart();
}
}
}

0 comments on commit a3afed0

Please sign in to comment.