From 23e83249ef175a1ca75b37e67b9e86501f90d88e Mon Sep 17 00:00:00 2001 From: Dvir Date: Wed, 23 Aug 2023 00:46:42 +0300 Subject: [PATCH 1/2] Update AnomalySystem.Generator.cs --- Content.Server/Anomaly/AnomalySystem.Generator.cs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Content.Server/Anomaly/AnomalySystem.Generator.cs b/Content.Server/Anomaly/AnomalySystem.Generator.cs index f1b147ac802..f25fd96a262 100644 --- a/Content.Server/Anomaly/AnomalySystem.Generator.cs +++ b/Content.Server/Anomaly/AnomalySystem.Generator.cs @@ -149,16 +149,10 @@ private void OnGeneratingFinished(EntityUid uid, AnomalyGeneratorComponent compo { var xform = Transform(uid); - if (_station.GetStationInMap(xform.MapID) is not { } station || - !TryComp(station, out var data) || - _station.GetLargestGrid(data) is not { } grid) - { - if (xform.GridUid == null) - return; - grid = xform.GridUid.Value; - } + if (xform.GridUid == null) + return; - SpawnOnRandomGridLocation(grid, component.SpawnerPrototype); + SpawnOnRandomGridLocation(xform.GridUid.Value, component.SpawnerPrototype); RemComp(uid); Appearance.SetData(uid, AnomalyGeneratorVisuals.Generating, false); Audio.PlayPvs(component.GeneratingFinishedSound, uid); From 2173fa958d04ff5db90be421ec43f0d2c6d9da29 Mon Sep 17 00:00:00 2001 From: Dvir Date: Wed, 23 Aug 2023 01:05:58 +0300 Subject: [PATCH 2/2] Update anomaly_equipment.yml --- .../Entities/Structures/Machines/anomaly_equipment.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Resources/Prototypes/Entities/Structures/Machines/anomaly_equipment.yml b/Resources/Prototypes/Entities/Structures/Machines/anomaly_equipment.yml index be7f9a1fbeb..a68d0aa6050 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/anomaly_equipment.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/anomaly_equipment.yml @@ -301,3 +301,5 @@ - type: GuideHelp guides: - AnomalousResearch + - type: Anchorable + delay: 999999