Skip to content

Commit

Permalink
disable local FTL
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheackraze committed Apr 21, 2024
1 parent 3f9ea6e commit 71ea871
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Content.Client/Shuttles/UI/MapScreen.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Linq;
using System.Numerics;
using Content.Client.Shuttles.Systems;
using Content.Shared._NF.Shuttles.Components;
using Content.Shared.Shuttles.BUIStates;
using Content.Shared.Shuttles.Components;
using Content.Shared.Shuttles.Systems;
Expand Down Expand Up @@ -114,6 +115,16 @@ public void UpdateState(ShuttleMapInterfaceState state)
MapRadar.InFtl = true;
MapFTLState.Text = Loc.GetString($"shuttle-console-ftl-state-{_state.ToString()}");

//frontier - we only allow pre-approved vessels to FTL
if (!_entManager.HasComponent<ShuttleFTLComponent>(_shuttleEntity))
{
MapFTLButton.Visible = false;
}
else
{
MapFTLButton.Visible = true;
}

switch (_state)
{
case FTLState.Available:
Expand Down
9 changes: 9 additions & 0 deletions Content.Shared/_NF/Shuttles/Components/ShuttleFTLComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace Content.Shared._NF.Shuttles.Components;

/// <summary>
/// This is a stub component for allowing/denying FTL on a shuttle.
/// </summary>
[RegisterComponent]
public sealed partial class ShuttleFTLComponent : Component
{
}

0 comments on commit 71ea871

Please sign in to comment.