Add PreventFTLComponent and changed FTL check (#34077)

* Add PreventFTLComponent and changed FTL check

* Remove component body.

---------

Co-authored-by: Milon <milonpl.git@proton.me>
This commit is contained in:
Aaron 2025-04-18 20:14:44 -04:00 • committed by GitHub
parent a6741e42c1
commit 56feab4e0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View file

@ -243,7 +243,7 @@ public sealed partial class ShuttleSystem
}
}
if (HasComp<PreventPilotComponent>(shuttleUid))
if (HasComp<PreventPilotComponent>(shuttleUid) || HasComp<PreventFTLComponent>(shuttleUid))
{
reason = Loc.GetString("shuttle-console-prevent");
return false;

View file

@ -0,0 +1,9 @@
using Robust.Shared.GameStates;
namespace Content.Shared.Shuttles.Components;
/// <summary>
/// Add to grids that you do not want to FTL, but still might want to pilot.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class PreventFTLComponent : Component;