@@ -178,13 +178,11 @@ public sealed partial class EmergencyShuttleSystem
|
|||||||
}
|
}
|
||||||
|
|
||||||
var podQuery = AllEntityQuery<EscapePodComponent>();
|
var podQuery = AllEntityQuery<EscapePodComponent>();
|
||||||
var podLaunchOffset = 0.5f;
|
|
||||||
|
|
||||||
// Stagger launches coz funny
|
// Stagger launches coz funny
|
||||||
while (podQuery.MoveNext(out _, out var pod))
|
while (podQuery.MoveNext(out _, out var pod))
|
||||||
{
|
{
|
||||||
pod.LaunchTime = _timing.CurTime + TimeSpan.FromSeconds(podLaunchOffset);
|
pod.LaunchTime = _timing.CurTime + TimeSpan.FromSeconds(_random.NextFloat(0.05f, 0.75f));
|
||||||
podLaunchOffset += _random.NextFloat(0.5f, 2.5f);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -195,7 +193,9 @@ public sealed partial class EmergencyShuttleSystem
|
|||||||
var stationUid = _station.GetOwningStation(uid);
|
var stationUid = _station.GetOwningStation(uid);
|
||||||
|
|
||||||
if (!TryComp<StationCentcommComponent>(stationUid, out var centcomm) ||
|
if (!TryComp<StationCentcommComponent>(stationUid, out var centcomm) ||
|
||||||
Deleted(centcomm.Entity) || pod.LaunchTime == null || pod.LaunchTime < _timing.CurTime)
|
Deleted(centcomm.Entity) ||
|
||||||
|
pod.LaunchTime == null ||
|
||||||
|
pod.LaunchTime > _timing.CurTime)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user