Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
13lackHawk committed Dec 25, 2023
1 parent 937e4c7 commit 3484c33
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -639,26 +639,26 @@ private void OnPlayersSpawning(RulePlayerSpawningEvent ev)
if (profile.AntagPreferences.Contains(nukeops.OperativeRoleProto.Id))
{
prefList.Add(player);
//if (_sponsors.TryGetInfo(player.UserId, out var sponsor) && sponsor.ExtraSlots == 7) // Cringe check until Tehnox update our service
//{
listSponsors.Add(player);
//}
if (_sponsors.TryGetInfo(player.UserId, out var sponsor) && sponsor.ExtraSlots == 7) // Cringe check until Tehnox update our service
{
listSponsors.Add(player);
}
}
if (profile.AntagPreferences.Contains(nukeops.MedicRoleProto.Id))
{
medPrefList.Add(player);
//if (_sponsors.TryGetInfo(player.UserId, out var sponsor) && sponsor.ExtraSlots == 7) // Cringe check until Tehnox update our service
//{
listSponsorsMed.Add(player);
//}
}
{
medPrefList.Add(player);
if (_sponsors.TryGetInfo(player.UserId, out var sponsor) && sponsor.ExtraSlots == 7) // Cringe check until Tehnox update our service
{
listSponsorsMed.Add(player);
}
}
if (profile.AntagPreferences.Contains(nukeops.CommanderRoleProto.Id))
{
cmdrPrefList.Add(player);
//if (_sponsors.TryGetInfo(player.UserId, out var sponsor) && sponsor.ExtraSlots == 7) // Cringe check until Tehnox update our service
//{
listSponsorsCmd.Add(player);
//}
if (_sponsors.TryGetInfo(player.UserId, out var sponsor) && sponsor.ExtraSlots == 7) // Cringe check until Tehnox update our service
{
listSponsorsCmd.Add(player);
}
}
}

Expand Down Expand Up @@ -690,7 +690,7 @@ private void OnPlayersSpawning(RulePlayerSpawningEvent ev)
if (listSponsors.Count != 0)
{
nukeOp = _random.PickAndTake(listSponsors);
prefList.Remove(nukeOp);
prefList.Remove(nukeOp);
listSponsors.Remove(nukeOp);
listSponsorsMed.Remove(nukeOp);
}
Expand Down

0 comments on commit 3484c33

Please sign in to comment.