Skip to content

Commit

Permalink
change ERT team
Browse files Browse the repository at this point in the history
  • Loading branch information
Rxup committed Nov 27, 2023
1 parent 6ac5e77 commit 87b3649
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Content.Server/Backmen/SpecForces/SpecForcesSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ private void SpawnGhostRole(SpecForcesType ev, EntityUid shuttle)
_ => 1
};

if (_random.Prob(0.3f))
if (countExtra > 2 && _random.Prob(0.3f))
{
SpawnEntity(SFOfficer, _random.Pick(spawns));
}
Expand All @@ -202,18 +202,15 @@ private void SpawnGhostRole(SpecForcesType ev, EntityUid shuttle)
{
case SpecForcesType.ERT:
SpawnEntity(ErtLeader, _random.Pick(spawns));
SpawnEntity(ErtEngineer, _random.Pick(spawns));

while (countExtra > 0)
{
if (countExtra-- > 0)
{
SpawnEntity(ErtSecurity, _random.Pick(spawns));
}

if (countExtra-- > 0)
{
SpawnEntity(ErtEngineer, _random.Pick(spawns));
}

if (countExtra-- > 0)
{
SpawnEntity(ErtMedical, _random.Pick(spawns));
Expand All @@ -239,7 +236,7 @@ private void SpawnGhostRole(SpecForcesType ev, EntityUid shuttle)

break;
case SpecForcesType.DeathSquad:
SpawnEntity(countExtra == 0 ? Spestnaz : SpestnazOfficer, _random.Pick(spawns));
SpawnEntity(SpestnazOfficer, _random.Pick(spawns));
while (countExtra > 0)
{
if (countExtra-- > 0)
Expand Down

0 comments on commit 87b3649

Please sign in to comment.