Skip to content

Commit

Permalink
Small update for station shuttle spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
MilenVolf committed Jan 8, 2025
1 parent c4a395a commit e73b010
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Content.Server.Starshine.Shuttles.Components;
using Content.Server.Station.Components;
using Content.Server.Station.Events;
using Content.Server.Station.Systems;
using Robust.Server.GameObjects;
using TimedDespawnComponent = Robust.Shared.Spawners.TimedDespawnComponent;

Expand All @@ -16,6 +17,7 @@ public sealed class StationShuttleDock : EntitySystem
[Dependency] private readonly SharedMapSystem _mapSystem = default!;
[Dependency] private readonly MapLoaderSystem _loader = default!;
[Dependency] private readonly ShuttleSystem _shuttles = default!;
[Dependency] private readonly StationSystem _station = default!;

/// <summary>
/// The first arrival is a little early, to save everyone 10s
Expand Down Expand Up @@ -60,6 +62,7 @@ private void SetupShuttle(EntityUid uid, StationShuttleDockComponent component)
component.Shuttle = shuttleUids[0];
var shuttleComp = Comp<ShuttleComponent>(component.Shuttle);
_shuttles.FTLToDock(component.Shuttle, shuttleComp, station, hyperspaceTime: RoundStartFTLDuration, priorityTag: component.TargetTag);
_station.AddGridToStation(uid, component.Shuttle);
}

// Don't start the arrivals shuttle immediately docked so power has a time to stabilise?
Expand Down

0 comments on commit e73b010

Please sign in to comment.