]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Anomaly warnings cleanup (#36188)
authorJ <billsmith116@gmail.com>
Sun, 30 Mar 2025 13:16:46 +0000 (13:16 +0000)
committerGitHub <noreply@github.com>
Sun, 30 Mar 2025 13:16:46 +0000 (15:16 +0200)
Content.Server/Anomaly/Effects/ProjectileAnomalySystem.cs
Content.Server/Anomaly/Effects/TechAnomalySystem.cs

index 23e0e472f0cf8b114300f03a9c64dcba567ae349..7983493961314b8982acc3b314e7cad38e822c33 100644 (file)
@@ -81,14 +81,14 @@ public sealed class ProjectileAnomalySystem : EntitySystem
         EntityCoordinates targetCoords,
         float severity)
     {
-        var mapPos = coords.ToMap(EntityManager, _xform);
+        var mapPos = _xform.ToMapCoordinates(coords);
 
         var spawnCoords = _mapManager.TryFindGridAt(mapPos, out var gridUid, out _)
-                ? coords.WithEntityId(gridUid, EntityManager)
+                ? _xform.WithEntityId(coords, gridUid)
                 : new(_mapManager.GetMapEntityId(mapPos.MapId), mapPos.Position);
 
         var ent = Spawn(component.ProjectilePrototype, spawnCoords);
-        var direction = targetCoords.ToMapPos(EntityManager, _xform) - mapPos.Position;
+        var direction = _xform.ToMapCoordinates(targetCoords).Position - mapPos.Position;
 
         if (!TryComp<ProjectileComponent>(ent, out var comp))
             return;
index 983cf2c8f465b596a8ea6bd5909c0488452cc839..1f3a6520d4bfb8ee7eb0df98c265bd10baefe8e1 100644 (file)
@@ -16,7 +16,6 @@ public sealed class TechAnomalySystem : EntitySystem
     [Dependency] private readonly IRobustRandom _random = default!;
     [Dependency] private readonly BeamSystem _beam = default!;
     [Dependency] private readonly IGameTiming _timing = default!;
-    [Dependency] private readonly EmagSystem _emag = default!;
 
     public override void Initialize()
     {