* Fix welder ignition
* fix mobs on fire hotspot expose frequency
* fix shotgun pellets ignition
* ensure ignitionComp on flammable init
* \n
* Revert "ensure ignitionComp on flammable init"
This reverts commit
6915dcdc
using Content.Server.Administration.Logs;
using Content.Server.Atmos.Components;
using Content.Server.Explosion.EntitySystems;
+using Content.Server.IgnitionSource;
using Content.Server.Stunnable;
using Content.Server.Temperature.Components;
using Content.Server.Temperature.Systems;
[Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!;
[Dependency] private readonly StunSystem _stunSystem = default!;
[Dependency] private readonly TemperatureSystem _temperatureSystem = default!;
+ [Dependency] private readonly IgnitionSourceSystem _ignitionSourceSystem = default!;
[Dependency] private readonly DamageableSystem _damageableSystem = default!;
[Dependency] private readonly AlertsSystem _alertsSystem = default!;
[Dependency] private readonly TransformSystem _transformSystem = default!;
flammable.OnFire = false;
flammable.FireStacks = 0;
+ _ignitionSourceSystem.SetIgnited(uid, false);
+
UpdateAppearance(uid, flammable);
}
continue;
}
- if(transform.GridUid != null)
- {
- _atmosphereSystem.HotspotExpose(transform.GridUid.Value,
- _transformSystem.GetGridOrMapTilePosition(uid, transform),
- 700f, 50f, uid, true);
-
- }
+ EnsureComp<IgnitionSourceComponent>(uid);
+ _ignitionSourceSystem.SetIgnited(uid);
}
}
}
[DataField, ViewVariables(VVAccess.ReadWrite)]
public bool Ignited;
- [DataField(required: true), ViewVariables(VVAccess.ReadWrite)]
- public int Temperature;
+ [DataField, ViewVariables(VVAccess.ReadWrite)]
+ public int Temperature = 700;
}
using System.Linq;
using Content.Server.Chemistry.Components;
+using Content.Server.IgnitionSource;
using Content.Server.Tools.Components;
using Content.Shared.Chemistry.Components.SolutionManager;
using Content.Shared.Database;
public sealed partial class ToolSystem
{
[Dependency] private readonly SharedItemToggleSystem _itemToggle = default!;
+ [Dependency] private readonly IgnitionSourceSystem _ignitionSource = default!;
private readonly HashSet<EntityUid> _activeWelders = new();
private const float WelderUpdateTimer = 1f;
// Logging
_adminLogger.Add(LogType.InteractActivate, LogImpact.Low, $"{ToPrettyString(args.User):user} toggled {ToPrettyString(uid):welder} on");
+ _ignitionSource.SetIgnited(uid);
+
if (transform.GridUid is { } gridUid)
{
var position = _transformSystem.GetGridOrMapTilePosition(uid, transform);
// Logging
_adminLogger.Add(LogType.InteractActivate, LogImpact.Low, $"{ToPrettyString(args.User):user} toggled {ToPrettyString(uid):welder} off");
+ _ignitionSource.SetIgnited(uid, false);
+
Dirty(uid, welder);
_activeWelders.Remove(uid);
- type: entity
- name: torch # todo: we need some sort of IgnitionSourceComponent we can add to this, so when it's lit it will cause fires when touching fuel
+ name: torch
parent: BaseItem
id: Torch
description: A torch fashioned from some wood.
types:
Blunt: 1
Heat: 7
+ - type: IgnitionSource
+ ignited: true
- type: entity
id: PelletShotgunPractice
sprite: Objects/Weapons/Guns/Projectiles/projectiles2.rsi
state: buckshot-flare
- type: IgnitionSource
+ ignited: true
temperature: 1000
- type: TimedDespawn
lifetime: 240