using Content.Shared.IgnitionSource;
namespace Content.Server.IgnitionSource;
+
public sealed partial class IgnitionSourceSystem : SharedIgnitionSourceSystem
{
[Dependency] private readonly AtmosphereSystem _atmosphere = default!;
-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;
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);
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;