Skip to content

Commit

Permalink
lingering FTL
Browse files Browse the repository at this point in the history
  • Loading branch information
whatston3 committed Mar 8, 2025
1 parent 113943a commit da5511c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Content.Server/Salvage/SalvageSystem.ExpeditionConsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,18 @@ private void UpdateConsole(Entity<SalvageExpeditionConsoleComponent> component)
}
else
{
state = new SalvageExpeditionConsoleState(TimeSpan.Zero, false, true, 0, new List<SalvageMissionParams>(), component.CanFinish); // Frontier: add CanFinish
state = new SalvageExpeditionConsoleState(TimeSpan.Zero, false, true, 0, new List<SalvageMissionParams>(), false); // Frontier: add false as last arg (cannot finish, not on a mission)
}

// Frontier: if we have a lingering FTL component, we cannot start a new mission
if (!TryComp<StationDataComponent>(station, out var stationData) ||
_station.GetLargestGrid(stationData) is not { Valid: true } grid ||
HasComp<FTLComponent>(grid))
{
state.Cooldown = true; //Hack: disable buttons
}
// End Frontier

_ui.SetUiState(component.Owner, SalvageConsoleUiKey.Expedition, state);
}

Expand Down

0 comments on commit da5511c

Please sign in to comment.