remove autoignite
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
namespace Content.Server._CP14.Temperature;
|
||||
|
||||
[RegisterComponent, Access(typeof(CP14FireSpreadSystem))]
|
||||
public sealed partial class CP14AutoIgniteComponent : Component
|
||||
{
|
||||
[DataField]
|
||||
public float StartStack = 1f;
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user