light ciggies with fire structures (#23196)
the pro ops Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
11
Content.Shared/Temperature/Components/AlwaysHotComponent.cs
Normal file
11
Content.Shared/Temperature/Components/AlwaysHotComponent.cs
Normal 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
|
||||
{
|
||||
}
|
||||
19
Content.Shared/Temperature/Systems/AlwaysHotSystem.cs
Normal file
19
Content.Shared/Temperature/Systems/AlwaysHotSystem.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user