light ciggies with fire structures (#23196)

the pro ops

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2024-01-01 08:10:48 +00:00
committed by GitHub
parent e443a204b1
commit 984cd643fe
4 changed files with 32 additions and 0 deletions

View File

@@ -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
{
}

View File

@@ -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;
}
}

View File

@@ -29,6 +29,7 @@
range: 5
sound:
path: /Audio/Ambience/Objects/fireplace.ogg
- type: AlwaysHot
- type: entity
id: LegionnaireBonfire

View File

@@ -45,3 +45,4 @@
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: AlwaysHot