From: Aaron Date: Sat, 19 Apr 2025 00:14:44 +0000 (-0400) Subject: Add PreventFTLComponent and changed FTL check (#34077) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=56feab4e0bc74fbbb4186d0d19a238ebe068a199;p=space-station-14.git Add PreventFTLComponent and changed FTL check (#34077) * Add PreventFTLComponent and changed FTL check * Remove component body. --------- Co-authored-by: Milon --- diff --git a/Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs b/Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs index cae6c443dd..40464e516f 100644 --- a/Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs +++ b/Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs @@ -243,7 +243,7 @@ public sealed partial class ShuttleSystem } } - if (HasComp(shuttleUid)) + if (HasComp(shuttleUid) || HasComp(shuttleUid)) { reason = Loc.GetString("shuttle-console-prevent"); return false; diff --git a/Content.Shared/Shuttles/Components/PreventFTLComponent.cs b/Content.Shared/Shuttles/Components/PreventFTLComponent.cs new file mode 100644 index 0000000000..343e1ffb06 --- /dev/null +++ b/Content.Shared/Shuttles/Components/PreventFTLComponent.cs @@ -0,0 +1,9 @@ +using Robust.Shared.GameStates; + +namespace Content.Shared.Shuttles.Components; + +/// +/// Add to grids that you do not want to FTL, but still might want to pilot. +/// +[RegisterComponent, NetworkedComponent] +public sealed partial class PreventFTLComponent : Component;