remove ignition functional from welder component (#37586)
* a * webedit
This commit is contained in:
@@ -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!;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user