Event Music & Nuke Countdown Song (#8597)

Co-authored-by: ike709 <ike709@github.com>
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
ike709
2022-07-04 01:29:38 -05:00
committed by GitHub
parent eb15c11b86
commit 0b86e0e953
14 changed files with 283 additions and 85 deletions

View File

@@ -158,6 +158,18 @@ public sealed class StationSystem : EntitySystem
#endregion Event handlers
public Filter GetInStation(EntityUid source, float range = 32f)
{
var station = GetOwningStation(source);
if (TryComp<StationDataComponent>(station, out var data))
{
return GetInStation(data);
}
return Filter.Empty();
}
/// <summary>
/// Retrieves a filter for everything in a particular station or near its member grids.
/// </summary>