Да пошёл ты нахуй выблядок
This commit is contained in:
@@ -12,7 +12,6 @@ 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()
|
||||||
{
|
{
|
||||||
@@ -24,16 +23,8 @@ public sealed class RoundEndVoteSystem : EntitySystem
|
|||||||
if(_gameTicker.RunLevel != GameRunLevel.PreRoundLobby)
|
if(_gameTicker.RunLevel != GameRunLevel.PreRoundLobby)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var player = _playerManager.PlayerCount;
|
|
||||||
|
|
||||||
if (player >= 20)
|
|
||||||
{
|
|
||||||
_voteManager.CreateStandardVote(null, StandardVoteType.Preset);
|
_voteManager.CreateStandardVote(null, StandardVoteType.Preset);
|
||||||
}
|
|
||||||
|
|
||||||
_voteManager.CreateStandardVote(null, StandardVoteType.Map);
|
_voteManager.CreateStandardVote(null, StandardVoteType.Map);
|
||||||
|
|
||||||
_gameTicker.SetGamePreset("Secret");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user