Eshuttle doors and colour (#9175)

This commit is contained in:
metalgearsloth
2022-06-26 18:19:27 +10:00
committed by GitHub
parent 09cd902e8b
commit ef0aa51e41
4 changed files with 31 additions and 15 deletions

View File

@@ -1,5 +1,6 @@
using Content.Server.Buckle.Components;
using Content.Server.Doors.Components;
using Content.Server.Doors.Systems;
using Content.Server.Shuttles.Components;
using Content.Server.Stunnable;
using Content.Shared.Sound;
@@ -18,6 +19,7 @@ public sealed partial class ShuttleSystem
* This is a way to move a shuttle from one location to another, via an intermediate map for fanciness.
*/
[Dependency] private readonly DoorSystem _doors = default!;
[Dependency] private readonly StunSystem _stuns = default!;
private MapId? _hyperSpaceMap;
@@ -141,9 +143,9 @@ public sealed partial class ShuttleSystem
{
foreach (var (dock, door, xform) in EntityQuery<DockingComponent, AirlockComponent, TransformComponent>(true))
{
if (xform.ParentUid != uid ||
dock.Enabled == enabled) continue;
if (xform.ParentUid != uid) continue;
_doors.TryClose(dock.Owner);
door.SetBoltsWithAudio(enabled);
}
}