mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
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:
parent
a6741e42c1
commit
56feab4e0b
2 changed files with 10 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
Loading…
Add table
Reference in a new issue