Багфиксы (#92)
* - fix: Fix airlock draw depth. * - fix: Fix headrev command staff message. * - fix: Fix gulag bound antags. * - fix: Double health icon fix. * - fix: Fix cult start exception. * - fix: Fix cult pull teleport. * - fix: Fix another exception. * - fix: Fix drawdepth again. * - fix: Clown font fix.
This commit is contained in:
@@ -10,11 +10,13 @@ using Content.Server.Mind;
|
||||
using Robust.Shared.Random;
|
||||
using Robust.Shared.Map;
|
||||
using System.Numerics;
|
||||
using Content.Server._Miracle.Components;
|
||||
using Content.Shared.Inventory;
|
||||
using Content.Server.Storage.EntitySystems;
|
||||
using Robust.Shared.Audio;
|
||||
using Content.Server.Chat.Managers;
|
||||
using Content.Server.GameTicking;
|
||||
using Content.Server.Revolutionary.Components;
|
||||
using Content.Server.Roles;
|
||||
using Robust.Shared.Containers;
|
||||
using Content.Shared.Mobs.Components;
|
||||
@@ -102,6 +104,13 @@ public sealed class AntagSelectionSystem : GameRuleSystem<GameRuleComponent>
|
||||
{
|
||||
if (includeHeads == false)
|
||||
{
|
||||
// WD START
|
||||
if (!_mindSystem.TryGetMind(player, out _, out var mind) ||
|
||||
mind.OwnedEntity is not { } ownedEntity || HasComp<CommandStaffComponent>(ownedEntity) ||
|
||||
HasComp<GulagBoundComponent>(ownedEntity))
|
||||
continue;
|
||||
// WD END
|
||||
|
||||
if (!_jobs.CanBeAntag(player))
|
||||
continue;
|
||||
}
|
||||
@@ -173,6 +182,11 @@ public sealed class AntagSelectionSystem : GameRuleSystem<GameRuleComponent>
|
||||
if (!_jobs.CanBeAntag(player))
|
||||
continue;
|
||||
|
||||
// Gulag
|
||||
if (!_mindSystem.TryGetMind(player, out _, out var mind) ||
|
||||
mind.OwnedEntity is not { } ownedEntity || HasComp<GulagBoundComponent>(ownedEntity))
|
||||
continue;
|
||||
|
||||
// Latejoin
|
||||
if (player.AttachedEntity != null && pendingQuery.HasComponent(player.AttachedEntity.Value))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user