mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-11-12 05:54:16 +03:00
20 lines
582 B
C#
20 lines
582 B
C#
using Content.Server.Nutrition.Components;
|
|
using Content.Shared.Smoking;
|
|
using Content.Shared.Temperature;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Server.Nutrition.EntitySystems
|
|
{
|
|
public class SmokingSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
SubscribeLocalEvent<SmokingComponent, IsHotEvent>(OnIsHotEvent);
|
|
}
|
|
|
|
private void OnIsHotEvent(EntityUid uid, SmokingComponent component, IsHotEvent args)
|
|
{
|
|
args.IsHot = component.CurrentState == SharedBurningStates.Lit;
|
|
}
|
|
}
|
|
}
|