]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
remove ignition functional from welder component (#37586)
authorkosticia <kosticia46@gmail.com>
Mon, 19 May 2025 09:49:59 +0000 (12:49 +0300)
committerGitHub <noreply@github.com>
Mon, 19 May 2025 09:49:59 +0000 (11:49 +0200)
* a

* webedit

Content.Server/IgnitionSource/IgnitionSourceSystem.cs
Content.Server/Tools/ToolSystem.cs
Content.Shared/Tools/Systems/SharedToolSystem.Welder.cs

index 2e3defadf4c738e7ac5ffda08c72a8e88ab80fb9..f39bb78a3793955b51a8a25653e0f74cae1bc18f 100644 (file)
@@ -2,6 +2,7 @@ using Content.Server.Atmos.EntitySystems;
 using Content.Shared.IgnitionSource;
 
 namespace Content.Server.IgnitionSource;
+
 public sealed partial class IgnitionSourceSystem : SharedIgnitionSourceSystem
 {
     [Dependency] private readonly AtmosphereSystem _atmosphere = default!;
index 7738a6398fada3f9d2ecc706a765298f690a5282..a88dbd3653ffabe56b4eb213fa66ef75a659a0ea 100644 (file)
@@ -1,8 +1,6 @@
-using Content.Server.Atmos.EntitySystems;
 using Content.Shared.Chemistry.Components.SolutionManager;
 using Content.Shared.FixedPoint;
 using Content.Shared.Tools.Components;
-using Robust.Server.GameObjects;
 
 using SharedToolSystem = Content.Shared.Tools.Systems.SharedToolSystem;
 
@@ -10,20 +8,6 @@ namespace Content.Server.Tools;
 
 public sealed class ToolSystem : SharedToolSystem
 {
-    [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!;
-    [Dependency] private readonly TransformSystem _transformSystem = default!;
-
-    public override void TurnOn(Entity<WelderComponent> entity, EntityUid? user)
-    {
-        base.TurnOn(entity, user);
-        var xform = Transform(entity);
-        if (xform.GridUid is { } gridUid)
-        {
-            var position = _transformSystem.GetGridOrMapTilePosition(entity.Owner, xform);
-            _atmosphereSystem.HotspotExpose(gridUid, position, 700, 50, entity.Owner, true);
-        }
-    }
-
     public override void Update(float frameTime)
     {
         base.Update(frameTime);
index a6c3c4779d27c50c5dee70feecd00fd4ecf95f0f..f8f0ae5d925f7843a3f0fba2b71a5e5283778d6e 100644 (file)
@@ -29,7 +29,7 @@ public abstract partial class SharedToolSystem
         SubscribeLocalEvent<WelderComponent, ItemToggleActivateAttemptEvent>(OnActivateAttempt);
     }
 
-    public virtual void TurnOn(Entity<WelderComponent> entity, EntityUid? user)
+    public void TurnOn(Entity<WelderComponent> entity, EntityUid? user)
     {
         if (!SolutionContainerSystem.TryGetSolution(entity.Owner, entity.Comp.FuelSolutionName, out var solutionComp, out _))
             return;