Skip to content

Commit

Permalink
Yzhe 8:08 pora sratb
Browse files Browse the repository at this point in the history
  • Loading branch information
Ady4ik committed Nov 14, 2024
1 parent 2649b45 commit 7dca62b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Content.Server/SS220/Commands/AdminRandomMakeAntagSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
using Robust.Shared.Utility;
using Robust.Server.GameObjects;
using Content.Shared.Mind;
using Content.Shared.Mindshield.Components;

namespace Content.Server.SS220.Commands
{
Expand Down Expand Up @@ -55,7 +56,7 @@ public void Execute(IConsoleShell shell, string argStr, string[] args)
shell.WriteLine($"{Identity.Name(isSuccessEntityUid.Value, _entityManager)} успешно стал {args[0]}");
}
else
shell.WriteLine($"Никто не стал антагонистом, потому что все итак антагонисты! Ну или в джоббане..");
shell.WriteLine($"Никто не стал антагонистом, потому что все итак антагонисты! Ну или в джоббане.. Ну или с МЩ.. Ну или сами разбирайтесь, как оно работает!");
}

private EntityUid? AdminMakeRandomAntagCommand(string defaultRule)
Expand Down Expand Up @@ -84,7 +85,6 @@ public void Execute(IConsoleShell shell, string argStr, string[] args)
if (mindId == null)
return null;

var banRole = banSystem.GetRoleBans(session.UserId);
if (banSystem.GetRoleBans(session.UserId) is { } roleBans)
{
if (roleBans.Contains("Job:" + defaultRule))
Expand All @@ -94,7 +94,8 @@ public void Execute(IConsoleShell shell, string argStr, string[] args)
if (roleSystem.MindHasRole<TraitorRoleComponent>(mindId.Value) ||
roleSystem.MindHasRole<ThiefRoleComponent>(mindId.Value) ||
roleSystem.MindHasRole<ZombieRoleComponent>(mindId.Value) ||
_entityManager.TryGetComponent<GhostComponent>(session.AttachedEntity, out var Ghostcomp))
_entityManager.HasComponent<GhostComponent>(session.AttachedEntity)
|| _entityManager.HasComponent<MindShieldComponent>(session.AttachedEntity))
return null;

switch (defaultRule) // TODO: When will add a cult add a cultist there too. U can add more for fun if u want.
Expand Down

0 comments on commit 7dca62b

Please sign in to comment.