remove autoignite

This commit is contained in:
Ed
2024-09-17 11:40:23 +03:00
parent 4691bdedb4
commit 233b493865
3 changed files with 3 additions and 20 deletions

View File

@@ -1,8 +0,0 @@
namespace Content.Server._CP14.Temperature;
[RegisterComponent, Access(typeof(CP14FireSpreadSystem))]
public sealed partial class CP14AutoIgniteComponent : Component
{
[DataField]
public float StartStack = 1f;
}

View File

@@ -26,7 +26,6 @@ public sealed partial class CP14FireSpreadSystem : EntitySystem
public override void Initialize()
{
SubscribeLocalEvent<CP14FireSpreadComponent, OnFireChangedEvent>(OnCompInit);
SubscribeLocalEvent<CP14AutoIgniteComponent, MapInitEvent>(OnMapInit);
SubscribeLocalEvent<CP14DespawnOnExtinguishComponent, OnFireChangedEvent>(OnFireChanged);
}
@@ -36,14 +35,6 @@ public sealed partial class CP14FireSpreadSystem : EntitySystem
QueueDel(ent);
}
private void OnMapInit(Entity<CP14AutoIgniteComponent> ent, ref MapInitEvent args)
{
if (!TryComp<FlammableComponent>(ent, out var flammable))
return;
_flammable.AdjustFireStacks(ent, ent.Comp.StartStack, flammable);
_flammable.Ignite(ent, ent, flammable);
}
private void OnCompInit(Entity<CP14FireSpreadComponent> ent, ref OnFireChangedEvent args)
{
if (!args.OnFire)

View File

@@ -66,8 +66,8 @@
Heat: 0
- type: CP14FlammableEntityHeater
- type: CP14FlammableSolutionHeater
- type: CP14Fireplace
fuel: 15
- type: CP14AutoIgnite
#- type: CP14Fireplace
# fuel: 15
#- type: CP14AutoIgnite
- type: CP14FireSpread
- type: CP14DespawnOnExtinguish