Get test map (#8987)
This commit is contained in:
@@ -210,6 +210,12 @@ namespace Content.Server.StationEvents.Events
|
||||
entityManager.EntitySysManager.Resolve(ref stationSystem);
|
||||
|
||||
targetCoords = EntityCoordinates.Invalid;
|
||||
if (stationSystem.Stations.Count == 0)
|
||||
{
|
||||
targetStation = EntityUid.Invalid;
|
||||
targetGrid = EntityUid.Invalid;
|
||||
return false;
|
||||
}
|
||||
targetStation = robustRandom.Pick(stationSystem.Stations);
|
||||
var possibleTargets = entityManager.GetComponent<StationDataComponent>(targetStation).Grids;
|
||||
if (possibleTargets.Count == 0)
|
||||
|
||||
Reference in New Issue
Block a user