light ciggies with fire structures (#23196)

the pro ops

Co-authored-by: deltanedas <@deltanedas:kde.org>
(cherry picked from commit 984cd643fe)
This commit is contained in:
deltanedas
2024-01-23 22:51:55 +01:00
committed by Debug
parent 056ea6f290
commit fed653e62f
4 changed files with 32 additions and 0 deletions
@@ -0,0 +1,11 @@
using Content.Shared.Temperature.Systems;
namespace Content.Shared.Temperature.Components;
/// <summary>
/// Makes the entity always set <c>IsHotEvent.IsHot</c> to true, no matter what.
/// </summary>
[RegisterComponent, Access(typeof(AlwaysHotSystem))]
public sealed partial class AlwaysHotComponent : Component
{
}
@@ -0,0 +1,19 @@
using Content.Shared.Temperature;
using Content.Shared.Temperature.Components;
namespace Content.Shared.Temperature.Systems;
public sealed class AlwaysHotSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<AlwaysHotComponent, IsHotEvent>(OnIsHot);
}
private void OnIsHot(Entity<AlwaysHotComponent> ent, ref IsHotEvent args)
{
args.IsHot = true;
}
}
@@ -29,6 +29,7 @@
range: 5
sound:
path: /Audio/Ambience/Objects/fireplace.ogg
- type: AlwaysHot
- type: entity
id: LegionnaireBonfire
@@ -45,3 +45,4 @@
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: AlwaysHot