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:
@@ -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;
|
||||
Reference in New Issue
Block a user