From: J Date: Sun, 30 Mar 2025 13:16:46 +0000 (+0000) Subject: Anomaly warnings cleanup (#36188) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=47f8aefc255bfadf839aaf8add82921727bc3407;p=space-station-14.git Anomaly warnings cleanup (#36188) --- diff --git a/Content.Server/Anomaly/Effects/ProjectileAnomalySystem.cs b/Content.Server/Anomaly/Effects/ProjectileAnomalySystem.cs index 23e0e472f0..7983493961 100644 --- a/Content.Server/Anomaly/Effects/ProjectileAnomalySystem.cs +++ b/Content.Server/Anomaly/Effects/ProjectileAnomalySystem.cs @@ -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(ent, out var comp)) return; diff --git a/Content.Server/Anomaly/Effects/TechAnomalySystem.cs b/Content.Server/Anomaly/Effects/TechAnomalySystem.cs index 983cf2c8f4..1f3a6520d4 100644 --- a/Content.Server/Anomaly/Effects/TechAnomalySystem.cs +++ b/Content.Server/Anomaly/Effects/TechAnomalySystem.cs @@ -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() {