govno edit
This commit is contained in:
@@ -12,6 +12,7 @@ public sealed class RoundEndVoteSystem : EntitySystem
|
|||||||
{
|
{
|
||||||
[Dependency] private readonly IVoteManager _voteManager = default!;
|
[Dependency] private readonly IVoteManager _voteManager = default!;
|
||||||
[Dependency] private readonly GameTicker _gameTicker = default!;
|
[Dependency] private readonly GameTicker _gameTicker = default!;
|
||||||
|
[Dependency] private readonly IPlayerManager _playerManager = default!;
|
||||||
|
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
@@ -23,7 +24,17 @@ public sealed class RoundEndVoteSystem : EntitySystem
|
|||||||
if (_gameTicker.RunLevel != GameRunLevel.PreRoundLobby)
|
if (_gameTicker.RunLevel != GameRunLevel.PreRoundLobby)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
var player = _playerManager.PlayerCount >= 20;
|
||||||
|
|
||||||
|
if (player)
|
||||||
|
{
|
||||||
_voteManager.CreateStandardVote(null, StandardVoteType.Preset);
|
_voteManager.CreateStandardVote(null, StandardVoteType.Preset);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_gameTicker.SetGamePreset("Secret");
|
||||||
|
}
|
||||||
|
|
||||||
_voteManager.CreateStandardVote(null, StandardVoteType.Map);
|
_voteManager.CreateStandardVote(null, StandardVoteType.Map);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user